1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 07:32:58 +08:00

Avoid Intro screen holding references to the intro beatmap (#5211)

Avoid Intro screen holding references to the intro beatmap
This commit is contained in:
Dean Herbert 2019-07-02 22:41:34 +09:00 committed by GitHub
commit 73474826f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,7 @@ namespace osu.Game.Screens.Menu
if (!resuming)
{
Beatmap.Value = introBeatmap;
introBeatmap = null;
if (menuVoice.Value)
welcome.Play();
@ -94,7 +95,10 @@ namespace osu.Game.Screens.Menu
{
// 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());