Prevent multiple enumeration

This commit is contained in:
smoogipoo 2021-02-02 18:37:11 +09:00
parent 9955e02898
commit 12f52316cd
1 changed files with 1 additions and 1 deletions

View File

@ -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)