1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 17:33:15 +08:00

Revert "Fix out of bounds exception during indexing"

This reverts commit 88d80016aa.
This commit is contained in:
smoogipoo 2019-01-20 12:05:08 +09:00
parent 1626e9a74e
commit 5ecc07b729

View File

@ -122,14 +122,8 @@ namespace osu.Game.Beatmaps.ControlPoints
return list[pivot];
}
if (l > 0)
{
// l will be the first control point with Time > time, but we want the one before it
return list[l - 1];
}
// If the binary search failed, l will be unaffected
return list[l];
// l will be the first control point with Time > time, but we want the one before it
return list[l - 1];
}
}
}