Core/Combat: some more detailed assertions to possibly shed light on #21187.
This commit is contained in:
1 parent
65a7ba597f
commit
be3a81ac55
2 files changed
+4
-4
No files matched your search
@@ -308,13 +308,13 @@ void CombatManager::PutReference(ObjectGuid const& guid, CombatReference* ref)
|
||||
if (ref->_isPvP)
|
||||
{
|
||||
auto& inMap = _pvpRefs[guid];
|
||||
ASSERT(!inMap && "Duplicate combat state detected - memory leak!");
|
||||
ASSERT(!inMap, "Duplicate combat state at %p being inserted for %s vs %s - memory leak!", ref, _owner->GetGUID().ToString().c_str(), guid.ToString().c_str());
|
||||
inMap = static_cast<PvPCombatReference*>(ref);
|
||||
}
|
||||
else
|
||||
{
|
||||
auto& inMap = _pveRefs[guid];
|
||||
ASSERT(!inMap && "Duplicate combat state detected - memory leak!");
|
||||
ASSERT(!inMap, "Duplicate combat state at %p being inserted for %s vs %s - memory leak!", ref, _owner->GetGUID().ToString().c_str(), guid.ToString().c_str());
|
||||
inMap = ref;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user