Fix usage of wrong (and uninitialized) variable
authorunC0Rr
Mon, 26 Aug 2019 12:36:07 +0200
changeset 15360 09fc16926855
parent 15359 dff37ac61dcf
child 15361 277acc9f9fcf
Fix usage of wrong (and uninitialized) variable
hedgewars/uAIMisc.pas
--- a/hedgewars/uAIMisc.pas	Sun Aug 25 23:43:46 2019 +0300
+++ b/hedgewars/uAIMisc.pas	Mon Aug 26 12:36:07 2019 +0200
@@ -799,7 +799,7 @@
                         begin
                         dead:= true;
                         Targets.reset:= true;
-                        if dX < 0.035 then
+                        if gdX < 0.035 then
                             begin
                             subrate:= RealRateExplosion(Me, round(pX), round(pY), 61, afErasesLand or afTrackFall);
                             if abs(subrate) > 2000 then inc(Rate,subrate div 1024)