mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09: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.Sort((h1, h2) => h1.StartTime.CompareTo(h2.StartTime));
|
||||||
|
|
||||||
nestedHitObjects.ForEach(h =>
|
foreach (var h in nestedHitObjects)
|
||||||
{
|
{
|
||||||
h.HitWindows = HitWindows;
|
h.HitWindows = HitWindows;
|
||||||
h.ApplyDefaults(controlPointInfo, difficulty);
|
h.ApplyDefaults(controlPointInfo, difficulty);
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
|
protected virtual void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user