Use index and range expressions

This commit is contained in:
Huo Yaoyuan
2019-12-14 20:54:22 +08:00
parent cea3a66d4a
commit c457571da6
12 changed files with 23 additions and 23 deletions

View File

@ -195,8 +195,8 @@ namespace osu.Game.Beatmaps.ControlPoints
if (time < list[0].Time)
return null;
if (time >= list[list.Count - 1].Time)
return list[list.Count - 1];
if (time >= list[^1].Time)
return list[^1];
int l = 0;
int r = list.Count - 2;