Fix default textures being replaced with the missing texture on reload

This commit is contained in:
Thinkofname 2016-04-25 12:05:57 +01:00
parent f23c16bff2
commit 3b7d2cb8ee
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ impl TextureManager {
};
let new_tex = self.put_texture("steven-dynamic", n, width as u32, height as u32, data);
self.dynamic_textures.get_mut(n).unwrap().0 = new_tex;
} else {
} else if !self.textures.contains_key(name) {
self.load_texture(name);
}
}