Core/EscortAI: initialize run state before filling waypoints
Port From (https://github.com/TrinityCore/TrinityCore/commit/b606c22dfdf204f8b49bce78304ed1ad1eec9029)
This commit is contained in:
@@ -403,6 +403,8 @@ namespace Game.AI
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_running = run;
|
||||||
|
|
||||||
if (!_manualPath && resetWaypoints)
|
if (!_manualPath && resetWaypoints)
|
||||||
FillPointMovementListForCreature();
|
FillPointMovementListForCreature();
|
||||||
|
|
||||||
@@ -414,7 +416,6 @@ namespace Game.AI
|
|||||||
|
|
||||||
// set variables
|
// set variables
|
||||||
_activeAttacker = isActiveAttacker;
|
_activeAttacker = isActiveAttacker;
|
||||||
_running = run;
|
|
||||||
_playerGUID = playerGUID;
|
_playerGUID = playerGUID;
|
||||||
_escortQuest = quest;
|
_escortQuest = quest;
|
||||||
_instantRespawn = instantRespawn;
|
_instantRespawn = instantRespawn;
|
||||||
|
|||||||
Reference in New Issue
Block a user