[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:
@@ -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,4 +1,4 @@
|
||||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7235"
|
||||
#define REVISION_NR "7236"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
||||
Reference in New Issue
Block a user