Core/Vendors: Fix typo that prevented alliance GM from viewing horde items in vendors

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-23 14:12:39 +02:00
parent 58e94dcb9d
commit 2f86baf20e

View File

@@ -771,7 +771,7 @@ void WorldSession::SendListInventory(uint64 vendorguid)
// `item_template`.`Faction` is actually `Team`.
// 1 == Horde / 2 == Alliance. Field will be renamed in later
// patch.
if (pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY && _player->GetTeam() == ALLIANCE || pProto->Flags2 == ITEM_FLAGS_EXTRA_ALLIANCE_ONLY && _player->GetTeam() == HORDE && !_player->isGameMaster())
if (!_player->isGameMaster() && ((pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY && _player->GetTeam() == ALLIANCE) || (pProto->Flags2 == ITEM_FLAGS_EXTRA_ALLIANCE_ONLY && _player->GetTeam() == HORDE)))
continue;
++count;