mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9674] Fix crash in ActivateSpec
This commit is contained in:
parent
34df886bec
commit
16a281c6d0
2 changed files with 5 additions and 3 deletions
|
|
@ -21565,9 +21565,11 @@ void Player::ActivateSpec(uint8 specNum)
|
|||
// remove any talent rank if talent not listed in temp spec
|
||||
if (iterTempSpec == tempSpec.end() || iterTempSpec->second.state == PLAYERSPELL_REMOVED)
|
||||
{
|
||||
TalentEntry const *talentInfo = talent.m_talentEntry;
|
||||
|
||||
for(int r = 0; r < MAX_TALENT_RANK; ++r)
|
||||
if (talent.m_talentEntry->RankID[r])
|
||||
removeSpell(talent.m_talentEntry->RankID[r],!IsPassiveSpell(talent.m_talentEntry->RankID[r]),false);
|
||||
if (talentInfo->RankID[r])
|
||||
removeSpell(talentInfo->RankID[r],!IsPassiveSpell(talentInfo->RankID[r]),false);
|
||||
|
||||
specIter = m_talents[m_activeSpec].begin();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue