# HG changeset patch
# User nemo
# Date 1314243423 14400
# Node ID c0107c991dda7532b681de9926c47fc9398c6551
# Parent  505c6448069b5d5fc12d8bbe49683409785881ae
another silly mistake

diff -r 505c6448069b -r c0107c991dda hedgewars/uAmmos.pas
--- 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)