mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-21 17:34:42 -05:00
Slightly better cleanup of Select_Menu
This commit is contained in:
parent
22f29a789b
commit
f7099eb68f
|
|
@ -853,6 +853,9 @@ bool run_conditional(int index)
|
|||
case CMD_LANG_MENU:
|
||||
populate_lang_menu();
|
||||
lang = langs.select_menu_main();
|
||||
// We have our choice, we should release
|
||||
// the memory of the options since we won't need them anymore
|
||||
langs.clear_options();
|
||||
if (lang == BUTTON_CANCEL)
|
||||
{
|
||||
return false;
|
||||
|
|
@ -863,6 +866,9 @@ bool run_conditional(int index)
|
|||
case CMD_GAME_MENU:
|
||||
populate_game_menu(party_data.get_lang());
|
||||
game = games.select_menu_main();
|
||||
// We have our choice, we should release
|
||||
// the memory of the options since we won't need them anymore
|
||||
games.clear_options();
|
||||
if (game == BUTTON_CANCEL)
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user