Permalink
Browse files

fix unsetting the paperdoll flag

Using ~ and BM_AND will result in an invalid flag error, so use the
proper flag and BM_NAND instead.
  • Loading branch information...
1 parent 9dbe735 commit aae17ed68cf09ea2b27f01e9b54f7ffdc9c2a424 @fizzet fizzet committed Apr 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/plugins/GUIScript/GUIScript.cpp
@@ -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 );

0 comments on commit aae17ed

Please sign in to comment.