diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2015-07-12 05:18:54 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2015-07-12 05:18:54 +0200 |
| commit | 5c0033e6d98bacda85ea16f07616d8e754644903 (patch) | |
| tree | 9572234acc7804aefb09d9e2d8e56a33a7e8dc10 /Source/Core/DolphinWX/Frame.cpp | |
| parent | 878629a2bf7a4626733f974f5c4c5b595057482b (diff) | |
DolphinWX: ParseHotkeys() should use the State::NUM_STATES constant instead of a hardcoded 10.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Frame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index b9df32bd0d..5c187b07ce 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -1442,7 +1442,7 @@ void CFrame::ParseHotkeys() VertexShaderManager::ResetView(); // Savestates - for (int i = 0; i < 10; i++) + for (int i = 0; i < State::NUM_STATES; i++) { if (IsHotkey(HK_LOAD_STATE_SLOT_1 + i)) State::Load(1 + i); |
