1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 02:25:29 +08:00

Prevent multiple enumeration

This commit is contained in:
smoogipoo
2021-02-02 18:37:11 +09:00
Unverified
parent 9955e02898
commit 12f52316cd
+1 -1
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)