Add check on amNothing
authornemo
Sun, 04 Sep 2011 16:42:51 -0400
changeset 5777 600b64455337
parent 5776 9c097391d8f9
child 5778 45fe3fa062b1
Add check on amNothing
hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Sun Sep 04 16:35:27 2011 -0400
+++ b/hedgewars/uAmmos.pas	Sun Sep 04 16:42:51 2011 -0400
@@ -215,7 +215,7 @@
 FillAmmoStore(hhammo, ammos);
 CurWeapon:= GetAmmoEntry(Hedgehog);
 with Hedgehog, CurWeapon^ do
-        if Count = 0 then
+        if (Count = 0) or (AmmoType = amNothing) then
             begin
             PackAmmo(Ammo, Ammoz[AmmoType].Slot);
             CurAmmoType:= amNothing