mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
Fix ModSelection making unsafe advances of ModSection
This commit is contained in:
parent
a86a7b08df
commit
962c95dc01
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user