aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;