!= and == are not the same thing.

(cherry picked from commit 51cf1c7136)
This commit is contained in:
Treeston
2019-07-21 22:25:04 +02:00
committed by Shauren
parent c6834a1de6
commit 4c754de7a8

View File

@@ -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