*Cleanup + back out changeset 18fa43db6cc3 (breaks riding apparently :[)

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-14 02:21:39 -07:00
parent 075989a8a4
commit 0173a28760
+2 -5
View File
@@ -15183,6 +15183,8 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
SetUInt32Value(PLAYER_TRACK_CREATURES, 0 );
SetUInt32Value(PLAYER_TRACK_RESOURCES, 0 );
_LoadSkills();
// make sure the unit is considered out of combat for proper loading
ClearInCombat();
@@ -15222,11 +15224,6 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
_LoadTalents(holder->GetResult(PLAYER_LOGIN_QUERY_LOADTALENTS));
_LoadSpells(holder->GetResult(PLAYER_LOGIN_QUERY_LOADSPELLS));
// Moved _LoadSkills() to be after _LoadSpells() because certain Tradeskill passive buffs
// would learn but not apply when calling _LoadSkills() first.
// Example: 53125 (Master of Anatomy) which is learned at skinning 75/75
_LoadSkills();
_LoadGlyphs(holder->GetResult(PLAYER_LOGIN_QUERY_LOADGLYPHS));
_LoadAuras(holder->GetResult(PLAYER_LOGIN_QUERY_LOADAURAS), time_diff);
_LoadGlyphAuras();