hedgewars/uAmmos.pas
changeset 8992 5b0be812dcdb
parent 7754 e81dc9bef8b8
child 8999 b5f0fb670b38
--- a/hedgewars/uAmmos.pas	Tue May 14 07:16:14 2013 -0400
+++ b/hedgewars/uAmmos.pas	Tue May 14 08:57:30 2013 -0400
@@ -278,7 +278,9 @@
                 PackAmmo(Ammo, Ammoz[AmmoType].Slot);
                 //SwitchNotHeldAmmo(Hedgehog);
                 if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat);
-                CurAmmoType:= amNothing
+                if CurAmmoGear <> nil then 
+                    SetWeapon(CurAmmoGear^.AmmoType)
+                else CurAmmoType:= amNothing;
                 end
             end
     end;