Fix broken tests due to badly reimplemented copy-pasted code

This commit is contained in:
Dean Herbert 2022-07-27 13:58:01 +09:00
parent 62ca3aada6
commit d8e605d8aa

View File

@ -72,10 +72,14 @@ namespace osu.Game.Skinning
};
firstEventTime = beatmap?.Value.Storyboard.EarliestEventTime ?? 0;
if (drawableRuleset != null)
{
firstHitTime = drawableRuleset.Objects.First().StartTime;
//TODO: this isn't always correct (consider mania where a non-last object may last for longer than the last in the list).
lastHitTime = drawableRuleset.Objects.Last().GetEndTime() + 1;
}
}
protected override void Update()
{