hedgewars/uVisualGears.pas
changeset 12465 c8ee50955fae
parent 12159 cb3e785534da
child 12702 0dfb49261cab
--- a/hedgewars/uVisualGears.pas	Thu Sep 21 03:07:29 2017 +0200
+++ b/hedgewars/uVisualGears.pas	Thu Sep 21 03:08:25 2017 +0200
@@ -339,7 +339,8 @@
                             tinted:= true;
                             Tint($FF, $FF, $FF, round(Gear^.alpha * $FF));
                             DrawTextureF(ropeIconTex, Gear^.scale, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, 0, 1, 32, 32);
-                            DrawTextureF(SpritesData[sprAMAmmos].Texture, Gear^.scale * 0.90, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Frame - 1, 1, 32, 32);
+                            if Gear^.Frame <> ord(amNothing) then
+                                DrawTextureF(SpritesData[sprAMAmmos].Texture, Gear^.scale * 0.90, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Frame - 1, 1, 32, 32);
                             end;
                    vgtShell: begin
                              if Gear^.FrameTicks < $FF then