From 50df50930d1b44830f81534f4e5f816be853d2e1 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 8 Sep 2019 15:48:06 +0200 Subject: Core/MovementGenerator: 680e1cbd6cf7c52abe104fb87d8fa6dba83fb633 follow-up (cherry picked from commit 7c0b31b8b52903ec233ad863597965594196a8e8) --- .../game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp index a3983a3390c..5f59ee70eb4 100644 --- a/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp @@ -116,7 +116,7 @@ bool FlightPathMovementGenerator::DoUpdate(Player* owner, uint32 /*diff*/) } } - if (pointId >= _currentNode) + if (pointId == _currentNode) break; if (_currentNode == _preloadTargetNode) @@ -124,7 +124,7 @@ bool FlightPathMovementGenerator::DoUpdate(Player* owner, uint32 /*diff*/) _currentNode += departureEvent ? 1 : 0; departureEvent = !departureEvent; - } while (true); + } while (_currentNode < _path.size()); } if (_currentNode >= (_path.size() - 1)) -- cgit v1.2.3