From e0b609a178528995959e5ea54255a3f856e62913 Mon Sep 17 00:00:00 2001 From: Treeston Date: Thu, 4 Jan 2018 15:19:37 +0100 Subject: Core/Map: Fix a crash that could happen if a player moved very far away from a creature they were in combat with. Closes #21177. --- src/server/scripts/Commands/cs_debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index 427a5f923ed..8ec08191185 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -920,12 +920,12 @@ public: for (auto const& ref : target->GetCombatManager().GetPvPCombatRefs()) { Unit* unit = ref.second->GetOther(target); - handler->PSendSysMessage("[PvP] %s (DBGUID %u)", unit->GetName().c_str(), unit->GetTypeId() == TYPEID_UNIT ? unit->ToCreature()->GetSpawnId() : 0); + handler->PSendSysMessage("[PvP] %s (SpawnID %u)", unit->GetName().c_str(), unit->GetTypeId() == TYPEID_UNIT ? unit->ToCreature()->GetSpawnId() : 0); } for (auto const& ref : target->GetCombatManager().GetPvECombatRefs()) { Unit* unit = ref.second->GetOther(target); - handler->PSendSysMessage("[PvE] %s (DBGUID %u)", unit->GetName().c_str(), unit->GetTypeId() == TYPEID_UNIT ? unit->ToCreature()->GetSpawnId() : 0); + handler->PSendSysMessage("[PvE] %s (SpawnID %u)", unit->GetName().c_str(), unit->GetTypeId() == TYPEID_UNIT ? unit->ToCreature()->GetSpawnId() : 0); } return true; } -- cgit v1.2.3