Yeah, this isn't safe either. Caused bug #629 - removing.
authornemo
Thu, 16 May 2013 14:02:33 -0400
changeset 9004 901ee9a8a3b4
parent 9002 2e4cf893c060
child 9006 552517b23882
Yeah, this isn't safe either. Caused bug #629 - removing.
hedgewars/uAmmos.pas
--- 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