From a083bc5981acf7bed518eaba043d78cc6cdc6964 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 29 May 2010 16:17:28 +0200 Subject: RequiredReputationFaction == 0 && RequiredReputationRank != 0 means its some leftover data, not a sign we should check standing with vendor's faction This fixes players "randomly" being unable to purchase an item due to missing reputation Fixes issue #2193. --HG-- branch : trunk --- src/game/Player.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/game') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 9b83e023920..0864266fb81 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -19573,14 +19573,6 @@ bool Player::BuyItemFromVendorSlot(uint64 vendorguid, uint32 vendorslot, uint32 SendBuyError(BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0); return false; } - else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0) - { - if (uint32(GetReputationRank(pCreature->getFactionTemplateEntry()->faction)) < pProto->RequiredReputationRank) - { - SendBuyError(BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0); - return false; - } - } if (crItem->ExtendedCost) { -- cgit v1.2.3