mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
74ec17a273
commit
7dffae89da
2 changed files with 1 additions and 5 deletions
|
|
@ -15211,10 +15211,6 @@ void Player::_LoadReputation(QueryResult *result)
|
||||||
|
|
||||||
void Player::_LoadSpells(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());
|
//QueryResult *result = CharacterDatabase.PQuery("SELECT spell,active,disabled FROM character_spell WHERE guid = '%u'",GetGUIDLow());
|
||||||
|
|
||||||
if(result)
|
if(result)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7235"
|
#define REVISION_NR "7236"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue