hedgewars/uAIMisc.pas
changeset 15775 72f735c03fec
parent 15750 cc8882e46784
child 15929 128ace913837
child 15989 723be7e392e5
--- a/hedgewars/uAIMisc.pas	Thu Oct 22 12:33:35 2020 +0200
+++ b/hedgewars/uAIMisc.pas	Thu Oct 22 12:50:24 2020 +0200
@@ -891,6 +891,7 @@
 meX:= Me^.X;
 meY:= Me^.Y;
 rate:= 0;
+hadSkips:= false;
 for i:= 0 to Targets.Count do
     if not Targets.ar[i].dead then
         with Targets.ar[i] do
@@ -975,6 +976,7 @@
 meX:= Me^.X;
 meY:= Me^.Y;
 rate:= 0;
+hadSkips:= false;
 for i:= 0 to Targets.Count do
     if (Targets.ar[i].Kind = gtGrave) and (not Targets.ar[i].dead) then
         with Targets.ar[i] do