diff options
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 98e8dec9e69..5c938400080 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6334,16 +6334,9 @@ void Player::RewardReputation(Quest const *pQuest) } else { - uint32 row = 1; - int32 field = 0; + uint32 row = ((pQuest->RewRepValueId[i] < 0) ? 1 : 0) + 1; + uint32 field = abs(pQuest->RewRepValueId[i]); - if (pQuest->RewRepValueId[i] < 0) - { - ++row; - field = abs(pQuest->RewRepValueId[i]); - } - else - field = pQuest->RewRepValueId[i]; if (const QuestFactionRewEntry *pRow = sQuestFactionRewardStore.LookupEntry(row)) { int32 repPoints = pRow->QuestRewFactionValue[field]; |
