1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 12:40:18 +08:00

Fix ModSelection making unsafe advances of ModSection

This commit is contained in:
Dean Herbert
2021-01-04 19:06:00 +09:00
Unverified
parent a86a7b08df
commit 962c95dc01
+2 -2
View File
@@ -130,7 +130,7 @@ namespace osu.Game.Overlays.Mods
/// Select one or more mods in this section and deselects all other ones.
/// </summary>
/// <param name="modTypes">The types of <see cref="Mod"/>s which should be selected.</param>
public void SelectTypes(IEnumerable<Type> modTypes)
public void SelectTypes(IEnumerable<Type> modTypes) => Schedule(() =>
{
foreach (var button in buttons)
{
@@ -141,7 +141,7 @@ namespace osu.Game.Overlays.Mods
else
button.Deselect();
}
}
});
protected ModSection()
{