Core/Movement: Add additional assert

Add additional assert to FlightPathMovementGenerator
This commit is contained in:
jackpoz
2018-09-20 15:03:55 +02:00
parent 6490408d4e
commit 2a06923879

View File

@@ -249,6 +249,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]->MapID; //! MapId of last node
_preloadTargetNode = nodeCount - 3;
_endGridX = _path[nodeCount - 1]->LocX;