mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Movement: Add additional assert
Add additional assert to FlightPathMovementGenerator
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user