--- a/hedgewars/uAI2.pas Thu Dec 19 14:18:55 2024 +0100
+++ b/hedgewars/uAI2.pas Tue Dec 31 15:18:18 2024 +0100
@@ -6,7 +6,7 @@
procedure initModule;
implementation
-uses uLandUtils, uFloat, uVariables, uTypes;
+uses uLandUtils, uFloat, uVariables, uTypes, uAmmos;
{$linklib hwengine_future}
@@ -43,7 +43,7 @@
for itAmmo:= Low(TAmmoType) to High(TAmmoType) do
ammoCounts[itAmmo]:= HHHasAmmo(CurrentTeam^.Hedgehogs[itHedgehog], itAmmo);
- ai_add_team_hedgehog(ai, hwFloat2float(Gear^.X), hwFloat2float(Gear^.Y), ammoCounts)
+ ai_add_team_hedgehog(ai, hwFloat2float(Gear^.X), hwFloat2float(Gear^.Y), @ammoCounts)
end;
itHedgehog:= Succ(itHedgehog) mod CurrentTeam^.HedgehogsNumber;
until (itHedgehog = currHedgehogIndex);