From 23bdbf1ad3bf50696724e3502ab1775a26f2886e Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 2 Feb 2010 21:24:44 -0700 Subject: [PATCH] * 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 --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 529dbd1627..45d14e3a4d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -18971,7 +18971,7 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint } 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); return false;