[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.
This commit is contained in:
VladimirMangos 2009-02-07 02:40:30 +03:00
parent 74ec17a273
commit 7dffae89da
2 changed files with 1 additions and 5 deletions

View file

@ -15211,10 +15211,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)