1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:43:20 +08:00

Use foreach for conformity

This commit is contained in:
Dean Herbert 2020-04-20 11:00:42 +09:00
parent e1acfd26a6
commit 8c85602ad0

View File

@ -93,12 +93,12 @@ namespace osu.Game.Rulesets.Osu.UI
yield return obj; yield return obj;
for (int i = 0; i < obj.NestedHitObjects.Count; i++) foreach (var nestedObj in obj.NestedHitObjects)
{ {
if (obj.NestedHitObjects[i].HitObject.StartTime >= targetTime) if (nestedObj.HitObject.StartTime >= targetTime)
break; break;
yield return obj.NestedHitObjects[i]; yield return nestedObj;
} }
} }
} }