diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 5ad1a1b6d19..a4c557ce27f 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -13450,6 +13450,15 @@ std::string Unit::GetDebugInfo() const << "" << (movespline ? movespline->ToString() : "Movespline: <none>\n") << "GetCharmedGUID(): " << GetCharmedGUID().ToString() << "\n" << "GetCharmerGUID(): " << GetCharmerGUID().ToString() << "\n" - << "" << (GetVehicleKit() ? GetVehicleKit()->GetDebugInfo() : "No vehicle kit"); + << "" << (GetVehicleKit() ? GetVehicleKit()->GetDebugInfo() : "No vehicle kit") << "\n" + << "m_Controlled size: " << m_Controlled.size(); + + size_t controlledCount = 0; + for (Unit* controlled : m_Controlled) + { + ++controlledCount; + sstr << "\n" << "m_Controlled " << controlledCount << " : " << controlled->GetGUID().ToString(); + } + return sstr.str(); } |