1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 22:22:55 +08:00

Fix CI not passing

This commit is contained in:
smoogipoo 2018-06-28 11:58:06 +09:00
parent 2f2bd59844
commit 01b90aaffe

View File

@ -117,7 +117,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
private void seekTrackToCurrent()
{
if (!Beatmap.Value.TrackLoaded)
if (!Beatmap.Value.TrackLoaded || !Beatmap.Value.Track.IsLoaded)
return;
adjustableClock.Seek(Current / Content.DrawWidth * Beatmap.Value.Track.Length);
@ -125,7 +125,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
private void scrollToTrackTime()
{
if (!Beatmap.Value.TrackLoaded)
if (!Beatmap.Value.TrackLoaded || !Beatmap.Value.Track.IsLoaded)
return;
ScrollTo((float)(adjustableClock.CurrentTime / Beatmap.Value.Track.Length) * Content.DrawWidth, false);