make SelectTypes set mods instead of only adding new ones

also made the method actually take types as parameter to make it consistent
This commit is contained in:
FreezyLemon
2018-03-14 12:33:08 +01:00
parent 95c84ea7fe
commit a438e45434
2 changed files with 10 additions and 10 deletions

View File

@ -76,7 +76,7 @@ namespace osu.Game.Overlays.Mods
private void selectedModsChanged(IEnumerable<Mod> obj)
{
foreach (ModSection section in ModSectionsContainer.Children)
section.SelectTypes(obj);
section.SelectTypes(obj.Select(m => m.GetType()).ToList());
updateMods();
}