Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit aae17ed68cf09ea2b27f01e9b54f7ffdc9c2a424 1 parent 9dbe735
@fizzet fizzet authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gemrb/plugins/GUIScript/GUIScript.cpp
View
2  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.
Something went wrong with that request. Please try again.