Core/Threat: Fix a potential crash that would occur in specific edge cases of AI being a bit naughty.
This commit is contained in:
1 parent
32d189e8b7
commit
5fc74508e3
2 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user