DolphinWX: ParseHotkeys() should use the State::NUM_STATES constant instead of a hardcoded 10.

This commit is contained in:
Admiral H. Curtiss 2015-07-12 05:18:54 +02:00
parent 878629a2bf
commit 5c0033e6d9

View file

@ -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);