aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2010-02-02 21:24:44 -0700
committerBrian <runningnak3d@gmail.com>2010-02-02 21:24:44 -0700
commit23bdbf1ad3bf50696724e3502ab1775a26f2886e (patch)
tree7c20d5628f90237eda28266f20d0f74315410ba6 /src
parenta1bf304945549276ba7957730df3d3c51bdaf6f5 (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 529dbd16274..45d14e3a4d1 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;