mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Remove unnecessary lambda allocation
This commit is contained in:
parent
417ebaeb85
commit
f53bb81723
@ -75,11 +75,11 @@ namespace osu.Game.Rulesets.Objects
|
||||
|
||||
nestedHitObjects.Sort((h1, h2) => h1.StartTime.CompareTo(h2.StartTime));
|
||||
|
||||
nestedHitObjects.ForEach(h =>
|
||||
foreach (var h in nestedHitObjects)
|
||||
{
|
||||
h.HitWindows = HitWindows;
|
||||
h.ApplyDefaults(controlPointInfo, difficulty);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
|
||||
|
Loading…
Reference in New Issue
Block a user