mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 17:02:57 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
double lastObjectTime = Beatmap.GetLastObjectTime();
|
double lastObjectTime = Beatmap.HitObjects.Any() ? Beatmap.GetLastObjectTime() : 0;
|
||||||
double baseBeatLength = TimingControlPoint.DEFAULT_BEAT_LENGTH;
|
double baseBeatLength = TimingControlPoint.DEFAULT_BEAT_LENGTH;
|
||||||
|
|
||||||
if (RelativeScaleBeatLengths)
|
if (RelativeScaleBeatLengths)
|
||||||
|
Loading…
Reference in New Issue
Block a user