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
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ private void load()
break;
}
double lastObjectTime = Beatmap.GetLastObjectTime();
double lastObjectTime = Beatmap.HitObjects.Any() ? Beatmap.GetLastObjectTime() : 0;
double baseBeatLength = TimingControlPoint.DEFAULT_BEAT_LENGTH;
if (RelativeScaleBeatLengths)