Core/Combat: some more detailed assertions to possibly shed light on #21187.

This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 16:56:59 +02:00
1 parent 65a7ba597f
commit be3a81ac55
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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;
}
}