mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 23:57:22 +08:00
use Length instead of Count()
This commit is contained in:
parent
c9784f57d3
commit
5df33ad2d7
@ -171,7 +171,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
public void SelectNext()
|
||||
{
|
||||
(++SelectedIndex == Mods.Count() ? sampleOff : sampleOn).Play();
|
||||
(++SelectedIndex == Mods.Length ? sampleOff : sampleOn).Play();
|
||||
Action?.Invoke(SelectedMod);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user