mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09: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:
@ -86,6 +86,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
if (!resuming)
|
if (!resuming)
|
||||||
{
|
{
|
||||||
Beatmap.Value = introBeatmap;
|
Beatmap.Value = introBeatmap;
|
||||||
|
introBeatmap = null;
|
||||||
|
|
||||||
if (menuVoice.Value)
|
if (menuVoice.Value)
|
||||||
welcome.Play();
|
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.
|
// 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)
|
if (menuMusic.Value)
|
||||||
|
{
|
||||||
track.Start();
|
track.Start();
|
||||||
|
track = null;
|
||||||
|
}
|
||||||
|
|
||||||
LoadComponentAsync(mainMenu = new MainMenu());
|
LoadComponentAsync(mainMenu = new MainMenu());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user