Core/EscortAI: initialize run state before filling waypoints (PR #22416)

This commit is contained in:
Ovah
2018-09-10 22:31:58 +02:00
committed by Treeston
parent 3c5b1f0258
commit 993c392cd7

View File

@@ -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;