hedgewars/HHHandlers.inc
changeset 4238 6f1631765ebd
parent 4233 b4ad20bfe310
child 4241 835fd7a0e1bf
--- a/hedgewars/HHHandlers.inc	Thu Nov 11 00:38:12 2010 +0100
+++ b/hedgewars/HHHandlers.inc	Thu Nov 11 09:58:10 2010 -0500
@@ -451,7 +451,7 @@
 case Gear^.Pos of
        posCaseUtility,
        posCaseAmmo: begin
-                    a:= TAmmoType(Gear^.State);
+                    a:= Gear^.AmmoType;
                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);
 // Possibly needs to check shared clan ammo game flag once added.
 // On the other hand, no obvious reason that clan members shouldn't know what ammo another clan member picked up