mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Avoid Intro screen holding references to the intro beatmap
This commit is contained in:
parent
115dcc3147
commit
29bb227de2
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user