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
This commit is contained in:
Shauren
2010-05-29 16:17:28 +02:00
parent d1747a66ce
commit a083bc5981

View File

@@ -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)
{