diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-01-15 15:42:41 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-06-15 23:22:50 +0200 |
commit | 56fcd8ba1dc33e00ff6f98704764dcdebd838fd3 (patch) | |
tree | dff461aff58b367ebb7ad2a4c3ebbd26c4c6b443 /src/server/game/Combat/CombatManager.cpp | |
parent | 08ac27d9598d8b2708de502ed9d83a554949af93 (diff) |
Core/Threat: Fix a potential crash that would occur in specific edge cases of AI being a bit naughty.
(cherry picked from commit 1847555c8c9e630d4d5f1328f25c875f408be949)
Diffstat (limited to 'src/server/game/Combat/CombatManager.cpp')
-rw-r--r-- | src/server/game/Combat/CombatManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Combat/CombatManager.cpp b/src/server/game/Combat/CombatManager.cpp index f2186d7fa8a..7630e3c1d2d 100644 --- a/src/server/game/Combat/CombatManager.cpp +++ b/src/server/game/Combat/CombatManager.cpp @@ -201,7 +201,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 |