Explorar el Código

Fixed getting the controller index when specifying --virtual (thanks @zturtleman)

Sam Lantinga hace 4 años
padre
commit
e3fd8feae6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test/testgamecontroller.c

+ 1 - 1
test/testgamecontroller.c

@@ -820,7 +820,7 @@ main(int argc, char *argv[])
             }
         }
         if (argv[i] && *argv[i] != '-') {
-            controller_index = SDL_atoi(argv[1]);
+            controller_index = SDL_atoi(argv[i]);
             break;
         }
     }