Skip to content

Commit

Permalink
fix unsetting the paperdoll flag
Browse files Browse the repository at this point in the history
Using ~ and BM_AND will result in an invalid flag error, so use the
proper flag and BM_NAND instead.
  • Loading branch information
fizzet committed Apr 16, 2013
1 parent 9dbe735 commit aae17ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/plugins/GUIScript/GUIScript.cpp
Expand Up @@ -3739,7 +3739,7 @@ static PyObject* GemRB_Button_SetPLT(PyObject * /*self*/, PyObject* args)
btn->SetFlags ( IE_GUI_BUTTON_BG1_PAPERDOLL, BM_OR );
btn->StackPicture( Picture2 );
} else if (type == 0) {
btn->SetFlags ( ~IE_GUI_BUTTON_BG1_PAPERDOLL, BM_AND );
btn->SetFlags ( IE_GUI_BUTTON_BG1_PAPERDOLL, BM_NAND );
}

Py_INCREF( Py_None );
Expand Down

0 comments on commit aae17ed

Please sign in to comment.