hedgewars/uWorld.pas
changeset 2857 768dfbe276a5
parent 2856 cc70797a0b75
child 2863 9eb53b1f1842
--- a/hedgewars/uWorld.pas	Wed Feb 24 03:03:43 2010 +0000
+++ b/hedgewars/uWorld.pas	Wed Feb 24 13:29:06 2010 +0000
@@ -139,6 +139,7 @@
    else
        if AMxShift < 210 then inc(AMxShift, MENUSPEED);
    end;
+Ammo:= nil;
 if (CurrentTeam <> nil) and (CurrentHedgehog <> nil) and (not CurrentTeam^.ExtDriven) and (CurrentHedgehog^.BotLevel = 0) then
    Ammo:= CurrentHedgehog^.Ammo
 else if (LocalAmmo <> -1) then