Return first control point in the list if the time is before it.

This commit is contained in:
smoogipooo 2017-05-24 01:38:04 +09:00
parent 952179332f
commit 7628cdf522

View File

@ -82,7 +82,7 @@ namespace osu.Game.Beatmaps.ControlPoints
return new T();
if (time < list[0].Time)
return new T();
return list[0];
int index = list.BinarySearch(new T() { Time = time });