diff options
| author | Markus Wick <markus+github@selfnet.de> | 2015-04-21 16:17:02 +0200 |
|---|---|---|
| committer | Markus Wick <markus+github@selfnet.de> | 2015-04-21 16:17:02 +0200 |
| commit | 4340927b7f17fa43c5f6c0f204c4bfc2b17a47d5 (patch) | |
| tree | bb84eb569dd1ff6d7a4a6d26e4380d9f8c1238b4 /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | d662fffb8c8dcc07a9df3b79cc22922af7c0afea (diff) | |
| parent | c3cf43f0644d42e2a5437e8f7fe316619fbeee91 (diff) | |
Merge pull request #2308 from Stevoisiak/FrameToolsMath
FrameTools: Remove redundant 'i-1'
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 4f62909422..21b90460e5 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -196,16 +196,16 @@ wxMenuBar* CFrame::CreateMenu() loadMenu->Append(IDM_UNDO_LOAD_STATE, GetMenuLabel(HK_UNDO_LOAD_STATE)); loadMenu->AppendSeparator(); - for (unsigned int i = 1; i <= State::NUM_STATES; i++) + for (unsigned int i = 0; i < State::NUM_STATES; i++) { - loadMenu->Append(IDM_LOAD_SLOT_1 + i - 1, GetMenuLabel(HK_LOAD_STATE_SLOT_1 + i - 1)); - saveMenu->Append(IDM_SAVE_SLOT_1 + i - 1, GetMenuLabel(HK_SAVE_STATE_SLOT_1 + i - 1)); - slotSelectMenu->Append(IDM_SELECT_SLOT_1 + i - 1, GetMenuLabel(HK_SELECT_STATE_SLOT_1 + i - 1)); + loadMenu->Append(IDM_LOAD_SLOT_1 + i, GetMenuLabel(HK_LOAD_STATE_SLOT_1 + i)); + saveMenu->Append(IDM_SAVE_SLOT_1 + i, GetMenuLabel(HK_SAVE_STATE_SLOT_1 + i)); + slotSelectMenu->Append(IDM_SELECT_SLOT_1 + i, GetMenuLabel(HK_SELECT_STATE_SLOT_1 + i)); } loadMenu->AppendSeparator(); - for (unsigned int i = 1; i <= State::NUM_STATES; i++) - loadMenu->Append(IDM_LOAD_LAST_1 + i - 1, GetMenuLabel(HK_LOAD_LAST_STATE_1 + i - 1)); + for (unsigned int i = 0; i < State::NUM_STATES; i++) + loadMenu->Append(IDM_LOAD_LAST_1 + i, GetMenuLabel(HK_LOAD_LAST_STATE_1 + i)); menubar->Append(emulationMenu, _("&Emulation")); |
