Fix removal of action buttons by removing some redundant code.
--HG-- branch : trunk
This commit is contained in:
@@ -16110,11 +16110,7 @@ void Player::_LoadActions(QueryResult_AutoPtr result, bool startup)
|
|||||||
uint8 type = fields[2].GetUInt8();
|
uint8 type = fields[2].GetUInt8();
|
||||||
|
|
||||||
if(ActionButton* ab = addActionButton(button, action, type))
|
if(ActionButton* ab = addActionButton(button, action, type))
|
||||||
{
|
|
||||||
ab->uState = ACTIONBUTTON_UNCHANGED;
|
ab->uState = ACTIONBUTTON_UNCHANGED;
|
||||||
if(!startup) // Switching specs
|
|
||||||
ab->canRemoveByClient = false;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sLog.outError( " ...at loading, and will deleted in DB also");
|
sLog.outError( " ...at loading, and will deleted in DB also");
|
||||||
|
|||||||
Reference in New Issue
Block a user