fix asynchronous stack corruption from main menu timer
This commit is contained in:
parent
7a3e4d4fb8
commit
bf1f585889
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue