diff options
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 1fc04b4051f..dd22c49c720 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -3774,8 +3774,9 @@ bool Player::resetTalents(bool no_cost) // to prevent unexpected lost normal learned spell skip another class talents if( (getClassMask() & talentTabInfo->ClassMask) == 0 ) continue; - - /* for (int j = 0; j < MAX_TALENT_RANK; j++) + + // Re-use pre-dual talent way of resetting talents, to ensure talents aren't being stored in spell storage. + for (int j = 0; j < MAX_TALENT_RANK; j++) { for(PlayerSpellMap::iterator itr = GetSpellMap().begin(); itr != GetSpellMap().end();) { @@ -3804,7 +3805,8 @@ bool Player::resetTalents(bool no_cost) else ++itr; } - } */ + } + PlayerTalentMap::iterator itr2 = m_talents[m_activeSpec]->begin(); for (; itr2 != m_talents[m_activeSpec]->end(); ++itr2) { |
