Fix incorrect fallback logic

Regressed when attempting to share implementation of binary search.
This commit is contained in:
Dean Herbert
2022-10-20 23:08:18 +09:00
parent 26860a903e
commit 5c13c443ff
2 changed files with 10 additions and 2 deletions

View File

@ -207,7 +207,7 @@ namespace osu.Game.Beatmaps.ControlPoints
/// </summary>
/// <param name="list">The list to search.</param>
/// <param name="time">The time to find the control point at.</param>
/// <returns>The active control point at <paramref name="time"/>.</returns>
/// <returns>The active control point at <paramref name="time"/>. Will return <c>null</c> if there are no control points, or if the time is before the first control point.</returns>
public static T BinarySearch<T>(IReadOnlyList<T> list, double time)
where T : class, IControlPoint
{