fix asynchronous stack corruption from main menu timer

This commit is contained in:
Lephenixnoir 2022-02-13 16:02:16 +01:00
parent 7a3e4d4fb8
commit bf1f585889
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ int menu_level_select(int start)
target_x -= DWIDTH;
}
if(key == KEY_EXE || key == KEY_SHIFT)
return selection;
break;
}
timer_stop(t);
@ -132,5 +132,5 @@ int menu_level_select(int start)
for(size_t i = 0; i < OPTION_COUNT; i++)
menu_destroy_game(options[i]);
return 0;
return selection;
}