SaveState: Clean up some constant usage.
This commit is contained in:
parent
2f96dda185
commit
ef566a3adf
5 changed files with 9 additions and 9 deletions
|
@ -1139,8 +1139,8 @@ namespace MainWindow {
|
|||
if (g_Config.iCurrentStateSlot < 0)
|
||||
g_Config.iCurrentStateSlot = 0;
|
||||
|
||||
else if (g_Config.iCurrentStateSlot >= SaveState::SAVESTATESLOTS)
|
||||
g_Config.iCurrentStateSlot = SaveState::SAVESTATESLOTS - 1;
|
||||
else if (g_Config.iCurrentStateSlot >= SaveState::NUM_SLOTS)
|
||||
g_Config.iCurrentStateSlot = SaveState::NUM_SLOTS - 1;
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(savestateSlot); i++) {
|
||||
CheckMenuItem(menu, savestateSlot[i], MF_BYCOMMAND | ((i == g_Config.iCurrentStateSlot) ? MF_CHECKED : MF_UNCHECKED));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue