Core/Spells: fixed another cherrypick mistake that was causing ownerless traps to crash

This commit is contained in:
Ovahlord committed 2022-09-12 09:15:29 +02:00
1 parent 862a9fded9
commit 099cb8876b
1 file changed
+1 -1
+1 -1
View File
@@ -2764,7 +2764,7 @@ ReputationRank WorldObject::GetReactionTo(WorldObject const* target) const
Unit const* targetUnit = Coalesce<const Unit>(target->ToUnit(), targetPlayerOwner);
if (unit && unit->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED))
{
if (unit && unit->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED))
if (targetUnit && targetUnit->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED))
{
if (selfPlayerOwner && targetPlayerOwner)
{