hedgewars/uWorld.pas
changeset 6924 57b66ee3bff3
parent 6918 13d6cce2056c
child 6941 228c0ab239f1
--- a/hedgewars/uWorld.pas	Tue Apr 24 23:33:39 2012 +0400
+++ b/hedgewars/uWorld.pas	Tue Apr 24 23:50:40 2012 +0400
@@ -1585,7 +1585,7 @@
                 begin
             if (CurAmmoType = amNapalm) or (CurAmmoType = amMineStrike) then
                 DrawLine(-3000, topY-300, 7000, topY-300, 3.0, (Team^.Clan^.Color shr 16), (Team^.Clan^.Color shr 8) and $FF, Team^.Clan^.Color and $FF, $FF);
-            i:= GetAmmoEntry(CurrentHedgehog^)^.Pos;
+            i:= GetCurAmmoEntry(CurrentHedgehog^)^.Pos;
             with Ammoz[CurAmmoType] do
                 if PosCount > 1 then
                     DrawSprite(PosSprite, CursorPoint.X - (SpritesData[PosSprite].Width shr 1), cScreenHeight - CursorPoint.Y - (SpritesData[PosSprite].Height shr 1),i);