diff options
author | megamage <none@none> | 2009-02-08 20:43:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-08 20:43:25 -0600 |
commit | 62a6911dc70b71125d40d036dd49e0be867b7c0e (patch) | |
tree | 6713daa16f9321e0b031588d32c3d4cdc24d5f47 /src/game/Player.cpp | |
parent | 09adb057411281cef8e845071c24da50850bfb35 (diff) |
[7236] Prevent lost spells dependent from skills learned before non-dependent spell loading from DB.
For example spell 2764 will correctly show in spellbook after re-login. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 5f94f3f246a..7ee991999cb 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15626,10 +15626,6 @@ void Player::_LoadReputation(QueryResult *result) void Player::_LoadSpells(QueryResult *result) { - for (PlayerSpellMap::iterator itr = m_spells.begin(); itr != m_spells.end(); ++itr) - delete itr->second; - m_spells.clear(); - //QueryResult *result = CharacterDatabase.PQuery("SELECT spell,active,disabled FROM character_spell WHERE guid = '%u'",GetGUIDLow()); if(result) |