mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Fix test failures when no hitobjects are present in a scrolling ruleset
This commit is contained in:
parent
d9d48516fc
commit
d8dd7e7e0f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user