Fixed getting the controller index when specifying --virtual (thanks @zturtleman)
This commit is contained in:
1 parent
5953422c09
commit
e3fd8feae6
1 file changed
+1
-1
@@ -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