Simplify code.

This commit is contained in:
tomrus88 2010-02-09 02:11:36 +03:00
parent df457c3ff5
commit 1aa6c8eac9

View file

@ -6064,16 +6064,8 @@ void Player::RewardReputation(Quest const *pQuest)
}
else
{
uint32 row = 1;
int32 field = 0;
if (pQuest->RewRepValueId[i] < 0)
{
++row;
field = abs(pQuest->RewRepValueId[i]);
}
else
field = pQuest->RewRepValueId[i];
uint32 row = ((pQuest->RewRepValueId[i] < 0) ? 1 : 0) + 1;
uint32 field = abs(pQuest->RewRepValueId[i]);
if (const QuestFactionRewardEntry *pRow = sQuestFactionRewardStore.LookupEntry(row))
{