mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/MovementGenerator: Add more details to asserts
Include movespline in Unit::GetDebugInfo() and the Player owner in FlightPathMovementGenerator::DoEventIfAny() assert
This commit is contained in:
@@ -13526,6 +13526,7 @@ std::string Unit::GetDebugInfo() const
|
||||
<< std::boolalpha
|
||||
<< "IsAIEnabled: " << IsAIEnabled() << " DeathState: " << std::to_string(getDeathState())
|
||||
<< " UnitMovementFlags: " << GetUnitMovementFlags() << " ExtraUnitMovementFlags: " << GetExtraUnitMovementFlags()
|
||||
<< " Class: " << std::to_string(GetClass());
|
||||
<< " Class: " << std::to_string(GetClass()) << "\n"
|
||||
<< " " << (movespline ? movespline->ToString() : "Movespline: <none>");
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ void FlightPathMovementGenerator::SetCurrentNodeAfterTeleport()
|
||||
|
||||
void FlightPathMovementGenerator::DoEventIfAny(Player* owner, TaxiPathNodeEntry const* node, bool departure)
|
||||
{
|
||||
ASSERT(node);
|
||||
ASSERT(node, owner->GetDebugInfo().c_str());
|
||||
|
||||
if (uint32 eventid = departure ? node->DepartureEventID : node->ArrivalEventID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user