hedgewars/uAmmos.pas
changeset 9004 901ee9a8a3b4
parent 8999 b5f0fb670b38
child 9006 552517b23882
--- a/hedgewars/uAmmos.pas	Thu May 16 17:33:25 2013 +0200
+++ b/hedgewars/uAmmos.pas	Thu May 16 14:02:33 2013 -0400
@@ -279,7 +279,7 @@
                 //SwitchNotHeldAmmo(Hedgehog);
                 if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat);
                 if CurAmmoGear <> nil then 
-                    CurAmmoType:= CurAmmoGear^.AmmoType
+                    SetWeapon(CurAmmoGear^.AmmoType)
                 else CurAmmoType:= amNothing;
                 end
             end