# HG changeset patch # User unc0rr # Date 1163952637 0 # Node ID 97b2d242e2a1ade7fc17fd0d4a856c612ad975ca # Parent 6bdb58eff7491192e52115307847ac68023f686e Fix selecting 2nd ammo in slot %-\ diff -r 6bdb58eff749 -r 97b2d242e2a1 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)