hedgewars/uAmmos.pas
changeset 5974 5bd84514856f
parent 5777 600b64455337
child 5995 647d52370ce9
--- a/hedgewars/uAmmos.pas	Tue Sep 20 13:37:52 2011 -0400
+++ b/hedgewars/uAmmos.pas	Tue Sep 20 16:00:20 2011 -0400
@@ -339,7 +339,8 @@
     CurWeapon:= GetAmmoEntry(Hedgehog);
 
     if (CurWeapon^.Count = 0) then
-        SwitchToFirstLegalAmmo(Hedgehog);
+        SwitchToFirstLegalAmmo(Hedgehog)
+    else if CurWeapon^.AmmoType = amNothing then Hedgehog.CurAmmoType:= amNothing;
 
     CurWeapon:= GetAmmoEntry(Hedgehog);