Fix selecting 2nd ammo in slot %-\ hedgewars-0.8.0
authorunc0rr
Sun, 19 Nov 2006 16:10:37 +0000
changeset 255 97b2d242e2a1
parent 254 6bdb58eff749
child 256 48aeb69ef572
Fix selecting 2nd ammo in slot %-\
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Sun Nov 19 14:36:13 2006 +0000
+++ b/hedgewars/uTeams.pas	Sun Nov 19 16:10:37 2006 +0000
@@ -354,7 +354,7 @@
 t:= cMaxSlotAmmoIndex;
 with CurrentTeam^ do
      with Hedgehogs[CurrHedgehog] do
-          while (Ammo[CurSlot, CurAmmo].AmmoType <> weap) and (t > 0) do
+          while (Ammo[CurSlot, CurAmmo].AmmoType <> weap) and (t >= 0) do
                 begin
                 ParseCommand('/slot ' + chr(49 + Ammoz[TAmmoType(weap)].Slot));
                 dec(t)