[9666] Check max. honor points on characteacter login.

Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
Wowka321 2010-04-03 11:12:38 +02:00 committed by hunuza
parent 3d7313a229
commit 4e81b6c98b
2 changed files with 6 additions and 2 deletions

View file

@ -14840,7 +14840,11 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
SetArenaTeamInfoField(arena_slot, ArenaTeamInfoType(j), 0);
}
SetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY, fields[40].GetUInt32());
uint32 honor_currency = fields[40].GetUInt32();
if (honor_currency > sWorld.getConfig(CONFIG_UINT32_MAX_HONOR_POINTS))
honor_currency = sWorld.getConfig(CONFIG_UINT32_MAX_HONOR_POINTS);
SetUInt32Value(PLAYER_FIELD_HONOR_CURRENCY, honor_currency);
SetUInt32Value(PLAYER_FIELD_TODAY_CONTRIBUTION, fields[41].GetUInt32());
SetUInt32Value(PLAYER_FIELD_YESTERDAY_CONTRIBUTION, fields[42].GetUInt32());
SetUInt32Value(PLAYER_FIELD_LIFETIME_HONORBALE_KILLS, fields[43].GetUInt32());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9665"
#define REVISION_NR "9666"
#endif // __REVISION_NR_H__