fix condition
authoralfadur
Sat, 03 Aug 2019 17:10:19 +0300
changeset 15296 07ab4206f2a9
parent 15295 fcf0fb0cddbf
child 15297 70d416a8f63f
fix condition
rust/lib-hedgewars-engine/src/render/gear.rs
--- a/rust/lib-hedgewars-engine/src/render/gear.rs	Sat Aug 03 17:06:38 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/render/gear.rs	Sat Aug 03 17:10:19 2019 +0300
@@ -55,7 +55,7 @@
             if let Some((atlas_index, rect)) = atlas.get_rect(sprite_index) {
                 let size = load_sprite_pixels(&path, mapgen::theme::slice_u32_to_u8_mut(&mut pixels[..])).expect("Unable to load Graphics");
 
-                let used_pixels = if size.width == rect.width() {
+                let used_pixels = if size.width != rect.width() {
                     for y in 0..rect.height() {
                         for x in 0..rect.width() {
                             pixels_transposed[y * rect.width() + x] = pixels[x * rect.height() + y];