diff -r 772a43d88e6b -r 2146cb7be36f hedgewars/uAIMisc.pas --- a/hedgewars/uAIMisc.pas Fri Mar 10 11:42:25 2023 +0100 +++ b/hedgewars/uAIMisc.pas Tue Aug 22 08:35:46 2023 +0200 @@ -148,7 +148,7 @@ (Gear^.Health = 0) and (Gear^.Damage < 35)) ) and - (Targets.Count < 256) then + (Targets.Count < 255) then begin with Targets.ar[Targets.Count] do begin