mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/AI: fixed filling database waypoints with correct movement type for escortAI
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user