diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ac99affadcc..2bd8ab771ed 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15257,8 +15257,6 @@ bool Player::isAllowedToLoot(Creature* creature) void Player::_LoadActions(QueryResult *result) { - m_actionButtons.clear(); - if(result) { do @@ -21854,6 +21852,7 @@ void Player::ActivateSpec(uint8 spec) m_usedTalentCount = spentTalents; InitTalentForLevel(); + m_actionButtons.clear(); QueryResult *result = CharacterDatabase.PQuery("SELECT button,action,type FROM character_action WHERE guid = '%u' AND spec = '%u' ORDER BY button", GetGUIDLow(), m_activeSpec); if (result) { @@ -21864,3 +21863,4 @@ void Player::ActivateSpec(uint8 spec) SendActionButtons(1); SetPower(getPowerType(), 0); } + |