*Use the pre-dual spec way of unlearning talents on top of the current one, to ensure that talents don't end up in the spell storage causing unexpected behaviour in game when trying to learn a talent.

Note: If your players have trouble learning specific talents, or they have an abnormal amount of talent points, force a talent reset on them after this rev and it should be resolved.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-19 22:38:08 +02:00
parent 4ac7a2d072
commit c9eee8e524
+4 -2
View File
@@ -3775,7 +3775,8 @@ bool Player::resetTalents(bool no_cost)
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)
{