From 52da459a83e577aabcc38212adbde24c678fcc14 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 10 Sep 2018 22:23:08 +0200 Subject: [PATCH] Core/AI: fixed filling database waypoints with correct movement type for escortAI --- src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index cc3342c0070..1c650bd1711 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -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;