Fix incorrect current DS value when inside a slider

This commit is contained in:
Dean Herbert 2022-10-21 23:35:47 +09:00
parent f6de366766
commit bb921ff9a7
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ private void load(OverlayColourProvider colourProvider)
private (HitObject before, HitObject after)? getObjectsOnEitherSideOfCurrentTime()
{
HitObject lastBefore = Playfield.HitObjectContainer.AliveObjects.LastOrDefault(h => h.HitObject.GetEndTime() <= EditorClock.CurrentTime)?.HitObject;
HitObject lastBefore = Playfield.HitObjectContainer.AliveObjects.LastOrDefault(h => h.HitObject.StartTime <= EditorClock.CurrentTime)?.HitObject;
if (lastBefore == null)
return null;