From 993c392cd7b1baaabf08a6a0aa3a8dcc895ae1c5 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) --- src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/game/AI/ScriptedAI') diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index 56675f48218..bbadafe7112 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -303,6 +303,8 @@ void EscortAI::Start(bool isActiveAttacker /* = true*/, bool run /* = false */, return; } + _running = run; + if (!_manualPath && resetWaypoints) FillPointMovementListForCreature(); @@ -314,7 +316,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