*Allow talent resets even if your talent map is empty.
--HG-- branch : trunk
This commit is contained in:
+3
-2
@@ -22016,7 +22016,7 @@ void Player::ActivateSpec(uint8 spec)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
PlayerTalentMap::iterator plrTalent = m_talents[m_activeSpec]->find(talentInfo->TalentID);
|
PlayerTalentMap::iterator plrTalent = m_talents[m_activeSpec]->find(talentInfo->TalentID);
|
||||||
if (plrTalent != m_talents[m_activeSpec]->end())
|
if (plrTalent != m_talents[m_activeSpec]->end() || m_talents[m_activeSpec]->empty())
|
||||||
{
|
{
|
||||||
for (int8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
|
for (int8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
|
||||||
{
|
{
|
||||||
@@ -22045,7 +22045,8 @@ void Player::ActivateSpec(uint8 spec)
|
|||||||
else
|
else
|
||||||
++itr;
|
++itr;
|
||||||
}
|
}
|
||||||
plrTalent->second->state = PLAYERSPELL_REMOVED; // mark the talent in the talent map as removed
|
if (!m_talents[m_activeSpec]->empty())
|
||||||
|
plrTalent->second->state = PLAYERSPELL_REMOVED; // mark the talent in the talent map as removed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user