1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 06:27:18 +08:00

Unroll loop for the last control point

This commit is contained in:
smoogipoo 2018-10-17 11:39:29 +09:00
parent 336b6fa38e
commit 1bebceada7

View File

@ -104,8 +104,11 @@ namespace osu.Game.Beatmaps.ControlPoints
if (time < list[0].Time)
return prePoint ?? new T();
if (time >= list[list.Count - 1].Time)
return list[list.Count - 1];
int l = 0;
int r = list.Count - 1;
int r = list.Count - 2;
while (l <= r)
{