* Fixed reputation buying from vendors where the items had 0 for Req rep

* faction, but >0 for Req rank. In that case it pulls the faction of the
* vendor.
* HUGE thanks to QAston and silverice

--HG--
branch : trunk
This commit is contained in:
Brian
2010-02-02 21:24:44 -07:00
parent a1bf304945
commit 23bdbf1ad3
+1 -1
View File
@@ -18971,7 +18971,7 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
} }
else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0) else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0)
{ {
if (uint32(GetReputationRank(pCreature->getFaction())) < pProto->RequiredReputationRank) if (uint32(GetReputationRank(pCreature->getFactionTemplateEntry()->faction)) < pProto->RequiredReputationRank)
{ {
SendBuyError( BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0); SendBuyError( BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
return false; return false;