Fix precedence of operations in a boolean expression in function UpdateMenus in WndMainWindow.cpp.

Bitwise OR has higher precedence than the ternary expression operators. This is likely unintended, since the main goal here is to either check or un-check the items.
This commit is contained in:
Lioncash 2013-10-05 21:49:58 -04:00
parent a7836af14c
commit 2b84520e89

View file

@ -1741,7 +1741,7 @@ namespace MainWindow
g_Config.iCurrentStateSlot = SaveState::SAVESTATESLOTS - 1;
for (int i = 0; i < ARRAY_SIZE(savestateSlot); i++) {
CheckMenuItem(menu, savestateSlot[i], MF_BYCOMMAND | ( i == g_Config.iCurrentStateSlot )? MF_CHECKED : MF_UNCHECKED);
CheckMenuItem(menu, savestateSlot[i], MF_BYCOMMAND | (( i == g_Config.iCurrentStateSlot )? MF_CHECKED : MF_UNCHECKED));
}
UpdateCommands();