author | Wuzzy <almikes@aol.com> |
Sat, 22 Apr 2017 19:30:24 +0200 | |
changeset 12308 | 817522bab39b |
parent 12307 | f7919a4df898 |
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;