hedgewars/uGearsHedgehog.pas
changeset 12308 817522bab39b
parent 12302 071a05275798
child 12309 95cd64676f73
--- a/hedgewars/uGearsHedgehog.pas	Sat Apr 22 18:58:25 2017 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Sat Apr 22 19:30:24 2017 +0200
@@ -125,7 +125,7 @@
         ((Ammo^[slot, i].Count = 0) or (Team^.Clan^.TurnNumber <= Ammoz[Ammo^[slot, i].AmmoType].SkipTurns) or (Ammo^[slot, i].AmmoType = amNothing))
             do inc(i, ammochangedir);
 
-        if (i >= 0) and (i <= cMaxSlotAmmoIndex) then
+        if (i <= cMaxSlotAmmoIndex) then
             ammoidx:= i
         else ammoidx:= -1
         end;