Core/Spells: fixed another cherrypick mistake that was causing ownerless traps to crash
This commit is contained in:
1 parent
862a9fded9
commit
099cb8876b
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user