diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index c6128592..41f893aa 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -892,7 +892,7 @@ void ReleaseDirectInput() KeyboardInput = NULL; } - for(int i = 0; i < 4; i++) + for (int i=0; i<5; i++) if (JoystickInput[i]) { JoystickInput[i]->Release();