[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
This commit is contained in:
megamage
2009-02-08 20:43:25 -06:00
parent 09adb05741
commit 62a6911dc7
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -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)
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7235"
#define REVISION_NR "7236"
#endif // __REVISION_NR_H__