Fix removal of action buttons by removing some redundant code.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-03-09 22:07:43 +01:00
parent 9df357f5d9
commit cf0a646cc0
-4
View File
@@ -16110,11 +16110,7 @@ void Player::_LoadActions(QueryResult_AutoPtr result, bool startup)
uint8 type = fields[2].GetUInt8();
if(ActionButton* ab = addActionButton(button, action, type))
{
ab->uState = ACTIONBUTTON_UNCHANGED;
if(!startup) // Switching specs
ab->canRemoveByClient = false;
}
else
{
sLog.outError( " ...at loading, and will deleted in DB also");