Don't attempt to use virtual track for intro sequence clock

This commit is contained in:
Dean Herbert 2020-06-08 13:42:16 +09:00
parent 5f6c35a577
commit 72ada020a2
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Audio.Track;
using osu.Framework.Screens;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@ -61,7 +62,7 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
LoadComponentAsync(new TrianglesIntroSequence(logo, background)
{
RelativeSizeAxes = Axes.Both,
Clock = new FramedClock(MenuMusic.Value ? Track : null),
Clock = new FramedClock(MenuMusic.Value && !(Track is TrackVirtual) ? Track : null),
LoadMenu = LoadMenu
}, t =>
{