!= and == are not the same thing.

(cherry picked from commit 51cf1c7136741696fed9850b73f30cd45cb095a6)
This commit is contained in:
Treeston
2021-12-17 00:29:31 +01:00
committed by Shauren
parent c6834a1de6
commit 4c754de7a8
+1 -1
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