hedgewars/uAI.pas
changeset 553 5478386d935f
parent 545 f527450337c1
child 599 7c7b90c402d3
--- a/hedgewars/uAI.pas	Tue Jul 03 20:11:48 2007 +0000
+++ b/hedgewars/uAI.pas	Sun Jul 08 17:16:46 2007 +0000
@@ -308,7 +308,7 @@
    end;
 FillBonuses((Me^.State and gstAttacked) <> 0);
 for a:= Low(TAmmoType) to High(TAmmoType) do
-    CanUseAmmo[a]:= Assigned(AmmoTests[a].proc) and HHHasAmmo(PHedgehog(Me^.Hedgehog), a);
+    CanUseAmmo[a]:= Assigned(AmmoTests[a].proc) and HHHasAmmo(PHedgehog(Me^.Hedgehog)^, a);
 {$IFDEF DEBUGFILE}AddFileLog('Enter Think Thread');{$ENDIF}
 BeginThread(@Think, Me, ThinkThread)
 end;