mirror of https://github.com/ppy/osu
Prevent multiple enumeration
This commit is contained in:
parent
9955e02898
commit
12f52316cd
|
@ -47,7 +47,7 @@ public static bool CheckCompatibleSet(IEnumerable<Mod> combination)
|
|||
/// <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)
|
||||
|
|
Loading…
Reference in New Issue