mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
a7836af14c
commit
2b84520e89
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue