Fix update_menu_level crash

This commit is contained in:
Agent X 2024-07-08 23:17:32 -04:00
parent ad2e84ed30
commit 7148f47f99
1 changed files with 3 additions and 1 deletions

View File

@ -1498,7 +1498,9 @@ void update_menu_level(void) {
} else {
reset_volume();
sound_banks_disable(SEQ_PLAYER_SFX, SOUND_BANKS_BACKGROUND);
set_background_music(gCurrentArea->musicParam, gCurrentArea->musicParam2, 0);
if (gCurrentArea != NULL) {
set_background_music(gCurrentArea->musicParam, gCurrentArea->musicParam2, 0);
}
}
if (configMenuStaffRoll) {