mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 22:34:09 +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.
|
/// 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()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user