Fix player level stats field type reads
This commit is contained in:
1 parent
3a6c0b5575
commit
9b4985b5aa
1 file changed
+2
-2
@@ -3797,14 +3797,14 @@ void ObjectMgr::LoadPlayerInfo()
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
|
||||
uint32 current_class = fields[0].GetUInt8();
|
||||
uint32 current_class = fields[0].GetUInt16();
|
||||
if (current_class >= MAX_CLASSES)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Wrong class %u in `player_levelstats` table, ignoring.", current_class);
|
||||
continue;
|
||||
}
|
||||
|
||||
uint32 current_level = fields[1].GetUInt8();
|
||||
uint32 current_level = fields[1].GetUInt16();
|
||||
if (current_level > sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL))
|
||||
{
|
||||
if (current_level > STRONG_MAX_LEVEL) // hardcoded level maximum
|
||||
|
||||
Reference in new issue
Block a user