hedgewars/uAmmos.pas
changeset 8999 b5f0fb670b38
parent 8992 5b0be812dcdb
child 9004 901ee9a8a3b4
--- a/hedgewars/uAmmos.pas	Wed May 15 22:52:17 2013 -0400
+++ b/hedgewars/uAmmos.pas	Wed May 15 23:33:38 2013 -0400
@@ -279,7 +279,7 @@
                 //SwitchNotHeldAmmo(Hedgehog);
                 if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat);
                 if CurAmmoGear <> nil then 
-                    SetWeapon(CurAmmoGear^.AmmoType)
+                    CurAmmoType:= CurAmmoGear^.AmmoType
                 else CurAmmoType:= amNothing;
                 end
             end