From b606c22dfdf204f8b49bce78304ed1ad1eec9029 Mon Sep 17 00:00:00 2001 From: Ovah Date: Mon, 10 Sep 2018 22:31:58 +0200 Subject: Core/EscortAI: initialize run state before filling waypoints (PR #22416) (cherry picked from commit 993c392cd7b1baaabf08a6a0aa3a8dcc895ae1c5) --- src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3