Avoid Intro screen holding references to the intro beatmap

This commit is contained in:
Dean Herbert 2019-07-02 16:28:06 +09:00
parent 115dcc3147
commit 29bb227de2
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,7 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
if (!resuming)
{
Beatmap.Value = introBeatmap;
introBeatmap = null;
if (menuVoice.Value)
welcome.Play();
@ -94,7 +95,10 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
{
// Only start the current track if it is the menu music. A beatmap's track is started when entering the Main Manu.
if (menuMusic.Value)
{
track.Start();
track = null;
}
LoadComponentAsync(mainMenu = new MainMenu());