changeset 5680 | c0107c991dda |
parent 5676 | a655dfab27d7 |
child 5688 | fba59d6b5b6c |
--- a/hedgewars/uAmmos.pas Wed Aug 24 18:07:37 2011 -0400 +++ b/hedgewars/uAmmos.pas Wed Aug 24 23:37:03 2011 -0400 @@ -184,7 +184,8 @@ a: PAmmo; begin a:= GetAmmoEntry(Hedgehog, ammo); -if (a^.AmmoType = amNothing) or (a^.Count <> AMMO_INFINITE) then +cnt:= a^.Count; +if (a^.AmmoType = amNothing) or (cnt <> AMMO_INFINITE) then begin inc(cnt, Ammoz[ammo].NumberInCase); AddAmmo(Hedgehog, ammo, cnt)