1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 18:53:21 +08:00

Fix ModSelection making unsafe advances of ModSection

This commit is contained in:
Dean Herbert 2021-01-04 19:06:00 +09:00
parent a86a7b08df
commit 962c95dc01

View File

@ -130,7 +130,7 @@ namespace osu.Game.Overlays.Mods
/// Select one or more mods in this section and deselects all other ones. /// Select one or more mods in this section and deselects all other ones.
/// </summary> /// </summary>
/// <param name="modTypes">The types of <see cref="Mod"/>s which should be selected.</param> /// <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) foreach (var button in buttons)
{ {
@ -141,7 +141,7 @@ namespace osu.Game.Overlays.Mods
else else
button.Deselect(); button.Deselect();
} }
} });
protected ModSection() protected ModSection()
{ {