use Length instead of Count()

This commit is contained in:
Jorolf 2017-07-02 13:33:42 +02:00
parent c9784f57d3
commit 5df33ad2d7
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
public void SelectNext()
{
(++SelectedIndex == Mods.Count() ? sampleOff : sampleOn).Play();
(++SelectedIndex == Mods.Length ? sampleOff : sampleOn).Play();
Action?.Invoke(SelectedMod);
}