mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Return first control point in the list if the time is before it.
This commit is contained in:
parent
952179332f
commit
7628cdf522
@ -82,7 +82,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
|||||||
return new T();
|
return new T();
|
||||||
|
|
||||||
if (time < list[0].Time)
|
if (time < list[0].Time)
|
||||||
return new T();
|
return list[0];
|
||||||
|
|
||||||
int index = list.BinarySearch(new T() { Time = time });
|
int index = list.BinarySearch(new T() { Time = time });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user