aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-07-21 22:25:04 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-17 00:29:31 +0100
commit4c754de7a889d19e59830e755c86f6fda9ba3c54 (patch)
treecfd08681d4108cefd0ac2bd7fc43097c42fcb86a /src
parentc6834a1de6a346c1a87f9da33453b06a8c9bd343 (diff)
!= and == are not the same thing.
(cherry picked from commit 51cf1c7136741696fed9850b73f30cd45cb095a6)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Combat/CombatManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Combat/CombatManager.cpp b/src/server/game/Combat/CombatManager.cpp
index a43bb72eca4..04525f02f1c 100644
--- a/src/server/game/Combat/CombatManager.cpp
+++ b/src/server/game/Combat/CombatManager.cpp
@@ -331,7 +331,7 @@ bool CombatManager::UpdateOwnerCombatState() const
{
_owner->AddUnitFlag(UNIT_FLAG_IN_COMBAT);
_owner->AtEnterCombat();
- if (_owner->GetTypeId() == TYPEID_UNIT)
+ if (_owner->GetTypeId() != TYPEID_UNIT)
_owner->AtEngage(GetAnyTarget());
}
else