diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 0596f1891..106fdb4e6 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -21906,11 +21906,20 @@ void Player::ActivateSpec(uint8 specNum) // recheck action buttons (not checked at loading/spec copy) ActionButtonList const& currentActionButtonList = m_actionButtons[m_activeSpec]; - for(ActionButtonList::const_iterator itr = currentActionButtonList.begin(); itr != currentActionButtonList.end(); ++itr) + for(ActionButtonList::const_iterator itr = currentActionButtonList.begin(); itr != currentActionButtonList.end(); ) + { if (itr->second.uState != ACTIONBUTTON_DELETED) + { // remove broken without any output (it can be not correct because talents not copied at spec creating) if (!IsActionButtonDataValid(itr->first,itr->second.GetAction(),itr->second.GetType(), this, false)) + { removeActionButton(m_activeSpec,itr->first); + itr = currentActionButtonList.begin(); + continue; + } + } + ++itr; + } ResummonPetTemporaryUnSummonedIfAny(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 247bcbbc9..fd3242f46 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10053" + #define REVISION_NR "10054" #endif // __REVISION_NR_H__