1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:47:24 +08:00

Fix mod column using wrong equality type

This commit is contained in:
Bartłomiej Dach 2022-04-17 21:23:54 +02:00
parent 89d8ed8e20
commit 746a4a7403
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -296,7 +296,7 @@ namespace osu.Game.Overlays.Mods
private void updateActiveState()
{
foreach (var panel in panelFlow)
panel.Active.Value = SelectedMods.Value.Contains(panel.Mod, EqualityComparer<Mod>.Default);
panel.Active.Value = SelectedMods.Value.Any(selected => selected.GetType() == panel.Mod.GetType());
}
#region Bulk select / deselect