Core/Threat: Fix a potential crash that would occur in specific edge cases of AI being a bit naughty.

This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 17:11:08 +02:00
1 parent 32d189e8b7
commit 5fc74508e3
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -202,7 +202,7 @@ bool CombatManager::SetInCombatWith(Unit* who)
NotifyAICombat(_owner, who);
if (needOtherAI)
NotifyAICombat(who, _owner);
return true;
return IsInCombatWith(who);
}
bool CombatManager::IsInCombatWith(ObjectGuid const& guid) const