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:
parent
e1acfd26a6
commit
8c85602ad0
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user