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

Fix test failures when no hitobjects are present in a scrolling ruleset

This commit is contained in:
Dean Herbert 2022-12-01 21:42:03 +09:00
parent d9d48516fc
commit d8dd7e7e0f

View File

@ -114,7 +114,7 @@ namespace osu.Game.Rulesets.UI.Scrolling
break;
}
double lastObjectTime = Beatmap.GetLastObjectTime();
double lastObjectTime = Beatmap.HitObjects.Any() ? Beatmap.GetLastObjectTime() : 0;
double baseBeatLength = TimingControlPoint.DEFAULT_BEAT_LENGTH;
if (RelativeScaleBeatLengths)