OSDN Git Service

[CONFIG] Fix over loop.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 15 May 2017 18:58:46 +0000 (03:58 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 15 May 2017 18:58:46 +0000 (03:58 +0900)
source/src/config.cpp

index c68f233..fff0b21 100644 (file)
@@ -675,7 +675,7 @@ void save_config(const _TCHAR *config_path)
        
        // input
        #ifdef USE_JOYSTICK
-               for(int i = 0; i < 8; i++) {
+               for(int i = 0; i < 4; i++) {
                        for(int j = 0; j < 16; j++) {
                                MyWritePrivateProfileInt(_T("Input"), create_string(_T("JoyButtons%d_%d"), i + 1, j + 1), config.joy_buttons[i][j], config_path);
                        }