aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-07-21 22:25:04 +0200
committerTreeston <treeston.mmoc@gmail.com>2019-07-21 22:25:04 +0200
commit51cf1c7136741696fed9850b73f30cd45cb095a6 (patch)
tree75c1356fdcaa3f16e2851ec60b4269cafdd105c3 /src
parent81fcd2e2d5cbbb884baea7088d9bf1533ba01f15 (diff)
!= and == are not the same thing.
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 b36eb2ddd6e..f65b3f410bd 100644
--- a/src/server/game/Combat/CombatManager.cpp
+++ b/src/server/game/Combat/CombatManager.cpp
@@ -332,7 +332,7 @@ bool CombatManager::UpdateOwnerCombatState() const
{
_owner->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
_owner->AtEnterCombat();
- if (_owner->GetTypeId() == TYPEID_UNIT)
+ if (_owner->GetTypeId() != TYPEID_UNIT)
_owner->AtEngage(GetAnyTarget());
}
else