* Clear m_actionsButtons regardless of DB data for other spec when switching specs.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-16 03:23:51 +02:00
parent 340a206f05
commit 2844937850
+2 -2
View File
@@ -15231,8 +15231,6 @@ bool Player::isAllowedToLoot(Creature* creature)
void Player::_LoadActions(QueryResult *result)
{
m_actionButtons.clear();
if(result)
{
do
@@ -21828,6 +21826,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)
{
@@ -21837,3 +21836,4 @@ void Player::ActivateSpec(uint8 spec)
SendActionButtons(1);
SetPower(getPowerType(), 0);
}