hedgewars/uAmmos.pas
changeset 2364 272977d2df53
parent 2360 d4d545da9dbe
child 2369 c3eb11f1ab3a
--- a/hedgewars/uAmmos.pas	Thu Sep 10 03:02:38 2009 +0000
+++ b/hedgewars/uAmmos.pas	Thu Sep 10 03:03:04 2009 +0000
@@ -272,9 +272,9 @@
         begin
         CurAmmo:= 0;
         CurSlot:= 0;
-        while (CurSlot <= cMaxSlotIndex) and 
-              (Ammo^[CurSlot, CurAmmo].Count = 0) and
-              (Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber >= 0)
+        while (CurSlot <= cMaxSlotIndex) and
+              ((Ammo^[CurSlot, CurAmmo].Count = 0) or
+              (Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber >= 0))
               do inc(CurSlot)
         end
 end;