mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Ensure CurrentTrack is never null
This commit is contained in:
@ -179,8 +179,6 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
if (last is IntroScreen && music.TrackLoaded)
|
||||
{
|
||||
Debug.Assert(music.CurrentTrack != null);
|
||||
|
||||
if (!music.CurrentTrack.IsRunning)
|
||||
{
|
||||
music.CurrentTrack.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * music.CurrentTrack.Length);
|
||||
|
Reference in New Issue
Block a user