aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2019-03-13 23:29:52 +0100
committerShauren <shauren.trinity@gmail.com>2021-11-24 22:16:02 +0100
commite5eff882826c8ae7943519ba355ba7c544274336 (patch)
treedba9b0eec85b11d907fe55890f69674091d3926a /src
parentda1166db98f5f73aa1d8dc04ae2e39617c8b6a4c (diff)
Core/SAI: Fix Move to position and Set run if used after a waypoint
Closes #22976 (cherry picked from commit 9ab05e2b6dee2008aac512e98bc477c4ed637cfc)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index 856e8a5a045..f601b2f17c4 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -717,9 +717,6 @@ ObjectGuid SmartAI::GetGUID(int32 /*id*/) const
void SmartAI::SetRun(bool run)
{
- if (run == mRun)
- return;
-
me->SetWalk(!run);
mRun = run;
for (auto& node : _path.nodes)