Fix braindead check
authorunc0rr
Thu, 10 Sep 2009 03:03:04 +0000
changeset 2364 272977d2df53
parent 2363 5304fa032d9b
child 2365 12b5373f4058
Fix braindead check
hedgewars/uAmmos.pas
--- 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;