Allow quitting controllermap if there are no controllers attached

main
Sam Lantinga 2021-08-03 01:10:48 -07:00
parent 9d64e6b442
commit 8726f500ef
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ main(int argc, char *argv[])
return 2;
}
while (SDL_NumJoysticks() == 0) {
while (!done && SDL_NumJoysticks() == 0) {
SDL_Event event;
while (SDL_PollEvent(&event) > 0) {