diff options
| author | Machiavelli <none@none> | 2009-08-16 03:23:51 +0200 | 
|---|---|---|
| committer | Machiavelli <none@none> | 2009-08-16 03:23:51 +0200 | 
| commit | 28449378508d21cbf5bedb4fada26d86c91ab987 (patch) | |
| tree | 134253c838f9da6331c3db10cf43120005610115 | |
| parent | 340a206f05b93b16aa66a57d567635ba47caa553 (diff) | |
* Clear m_actionsButtons regardless of DB data for other spec when switching specs.
--HG--
branch : trunk
| -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 96a48225d56..48b4845f3f0 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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);  } +  | 
