diff options
| author | jackpoz <giacomopoz@gmail.com> | 2018-09-20 15:03:55 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-11-09 23:14:28 +0100 |
| commit | 0dccffc6a04f9272e843b7e7373c3ff185d4b41b (patch) | |
| tree | 4058f4897461db7049f7b389d155ca220d48bd40 | |
| parent | 72f99153facfafd051e170a37fe104f9add0a4fd (diff) | |
Core/Movement: Add additional assert
Add additional assert to FlightPathMovementGenerator
(cherry picked from commit 2a06923879ccbcfff35cba4f35427eaf8c79dffd)
| -rw-r--r-- | src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp index 72325844336..3aa391e2c1c 100644 --- a/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/FlightPathMovementGenerator.cpp @@ -254,6 +254,7 @@ void FlightPathMovementGenerator::InitEndGridInfo() * be reinitialized for each flightmaster at the end of each spline (or stop) in the flight. */ uint32 nodeCount = _path.size(); //! Number of nodes in path. + ASSERT(nodeCount, "FlightPathMovementGenerator::InitEndGridInfo() called with empty _path"); _endMapId = _path[nodeCount - 1]->ContinentID; //! MapId of last node _preloadTargetNode = nodeCount - 3; _endGridX = _path[nodeCount - 1]->Loc.X; |
