mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Remove unnecessary allocations
This commit is contained in:
parent
6df275c83a
commit
c510385aa8
@ -57,9 +57,9 @@ namespace osu.Game.Rulesets.Difficulty
|
|||||||
foreach (var combination in CreateDifficultyAdjustmentModCombinations())
|
foreach (var combination in CreateDifficultyAdjustmentModCombinations())
|
||||||
{
|
{
|
||||||
if (combination is MultiMod multi)
|
if (combination is MultiMod multi)
|
||||||
yield return Calculate(multi.Mods.Select(m => m.CreateCopy()).ToArray());
|
yield return Calculate(multi.Mods);
|
||||||
else
|
else
|
||||||
yield return Calculate(combination.CreateCopy());
|
yield return Calculate(combination);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user