Core: Fix minor bug with max skills value not being properly updated in the database when a player has been leveled up while offline - Thanks to Hyriuu

Fixes issue 3374

--HG--
branch : trunk
This commit is contained in:
click
2010-08-17 00:35:12 +02:00
parent fe90b1c974
commit d8b2a31f70

View File

@@ -16289,6 +16289,7 @@ bool Player::LoadFromDB(uint32 guid, SqlQueryHolder *holder)
// load skills after InitStatsForLevel because it triggering aura apply also
_LoadSkills(holder->GetResult(PLAYER_LOGIN_QUERY_LOADSKILLS));
UpdateSkillsForLevel (); //update skills after load, to make sure they are correctly update at player load
// apply original stats mods before spell loading or item equipment that call before equip _RemoveStatsMods()