aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-14 02:21:39 -0700
committermaximius <none@none>2009-10-14 02:21:39 -0700
commit0173a287608b17bc6c2c66c9c94ee814a15db745 (patch)
tree2c703d3a7a63e8d1383bbcf0c7c63cc94c3627f6 /src
parent075989a8a401ef09d334a149d7d7b4086ff564ae (diff)
*Cleanup + back out changeset 18fa43db6cc3 (breaks riding apparently :[)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index cb4ce5ce7f1..f0136a5e088 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -14886,7 +14886,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
continue;
// arena team not exist or not member, cleanup fields
- for(int j =0; j < 6; ++j)
+ for(int j = 0; j < 6; ++j)
SetUInt32Value(PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + arena_slot * 6 + j, 0);
}
@@ -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();