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:
parent
e30ae57ea6
commit
1cfe2b7de8
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user