diff options
author | Ovah <dreadkiller@gmx.de> | 2018-09-10 22:31:58 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-26 23:58:36 +0200 |
commit | b606c22dfdf204f8b49bce78304ed1ad1eec9029 (patch) | |
tree | 35acea5fe573f464e2f3bf215e73f830a6083a82 | |
parent | e520b45270ffbfa4a46f48f21de9b8fb18fb70ac (diff) |
Core/EscortAI: initialize run state before filling waypoints (PR #22416)
(cherry picked from commit 993c392cd7b1baaabf08a6a0aa3a8dcc895ae1c5)
-rw-r--r-- | src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index adbfa359177..2343d711243 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -300,6 +300,8 @@ void EscortAI::Start(bool isActiveAttacker /* = true*/, bool run /* = false */, return; } + _running = run; + if (!_manualPath && resetWaypoints) FillPointMovementListForCreature(); @@ -311,7 +313,6 @@ void EscortAI::Start(bool isActiveAttacker /* = true*/, bool run /* = false */, // set variables _activeAttacker = isActiveAttacker; - _running = run; _playerGUID = playerGUID; _escortQuest = quest; _instantRespawn = instantRespawn; |