Core/AI: fixed filling database waypoints with correct movement type for escortAI

This commit is contained in:
Ovahlord
2018-09-10 22:23:08 +02:00
parent 97a4cf4a12
commit 52da459a83

View File

@@ -395,6 +395,9 @@ void EscortAI::Start(bool isActiveAttacker /* = true*/, bool run /* = false */,
return;
}
// Initialize running variable before filling waypoints
_running = run;
if (!_manualPath && resetWaypoints)
FillPointMovementListForCreature();
@@ -406,7 +409,6 @@ void EscortAI::Start(bool isActiveAttacker /* = true*/, bool run /* = false */,
// set variables
_activeAttacker = isActiveAttacker;
_running = run;
_playerGUID = playerGUID;
_escortQuest = quest;
_instantRespawn = instantRespawn;