1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 19:53:08 +08:00

Prevent multiple enumeration

This commit is contained in:
smoogipoo 2021-02-02 18:37:11 +09:00
parent 9955e02898
commit 12f52316cd

View File

@ -47,7 +47,7 @@ namespace osu.Game.Utils
/// <returns>Whether all <see cref="Mod"/>s in the combination are compatible with each-other.</returns>
public static bool CheckCompatibleSet(IEnumerable<Mod> combination, out List<Mod>? invalidMods)
{
combination = FlattenMods(combination);
combination = FlattenMods(combination).ToArray();
invalidMods = null;
foreach (var mod in combination)