mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 03:48:14 +00:00
Fixed getting the controller index when specifying --virtual (thanks @zturtleman)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user