1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 09:37:19 +08:00

Fix timing points beyond the end time potentially becoming dominant

This commit is contained in:
smoogipoo 2019-08-26 16:25:23 +09:00
parent e30ae57ea6
commit 1cfe2b7de8

View File

@ -122,6 +122,9 @@ namespace osu.Game.Rulesets.UI.Scrolling
for (int i = 0; i < timingPoints.Count; i++)
{
if (timingPoints[i].Time > lastObjectTime)
break;
double endTime = i < timingPoints.Count - 1 ? timingPoints[i + 1].Time : lastObjectTime;
double duration = endTime - timingPoints[i].Time;