hedgewars/uAmmos.pas
changeset 2767 77c030ac978e
parent 2766 aa3120a9e22c
child 2769 82bfcc006afb
--- a/hedgewars/uAmmos.pas	Mon Feb 08 12:49:41 2010 +0000
+++ b/hedgewars/uAmmos.pas	Mon Feb 08 12:49:58 2010 +0000
@@ -72,10 +72,9 @@
        TryDo(mi[Ammoz[a].Slot] <= cMaxSlotAmmoIndex, 'Ammo slot overflow', true);
        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]]:= Ammoz[a].Ammo;
 
-       Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= 0;
+       Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= AMMO_INFINITE;
        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].InitialCount:= 0;
 
-       Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= AMMO_INFINITE;
        inc(mi[Ammoz[a].Slot])
        end
     end