Skip to content

Commit

Permalink
fix no music in level select sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
vayan committed Dec 16, 2023
1 parent b7dc178 commit ba88893
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ void Menu::switch_screen(MenuScreen screen, Game *game)
// need to clear any leftover level because level select is quite memory hungry
// we need leftover level sometimes to display the win screen for example
game->reset_current_level();
try_play_menu_music();
bg = bn::regular_bg_items::all_levels.create_bg(0, 0);
select_highlight = bn::regular_bg_items::level_select.create_bg(0, -17);
select_highlight->set_priority(0);
Expand Down

0 comments on commit ba88893

Please sign in to comment.