Rename variable

This commit is contained in:
Endrik Tombak 2020-03-28 13:23:31 +02:00
parent 63f6269eb0
commit 87854fc4fa
1 changed files with 3 additions and 3 deletions

View File

@ -266,12 +266,12 @@ private void selectNextSet(int direction, bool skipDifficulties)
{ {
var visibleSets = beatmapSets.Where(s => !s.Filtered.Value).ToList(); var visibleSets = beatmapSets.Where(s => !s.Filtered.Value).ToList();
var item = visibleSets[(visibleSets.IndexOf(selectedBeatmapSet) + direction + visibleSets.Count) % visibleSets.Count]; var nextSet = visibleSets[(visibleSets.IndexOf(selectedBeatmapSet) + direction + visibleSets.Count) % visibleSets.Count];
if (skipDifficulties) if (skipDifficulties)
select(item); select(nextSet);
else else
select(direction > 0 ? item.Beatmaps.First(b => !b.Filtered.Value) : item.Beatmaps.Last(b => !b.Filtered.Value)); select(direction > 0 ? nextSet.Beatmaps.First(b => !b.Filtered.Value) : nextSet.Beatmaps.Last(b => !b.Filtered.Value));
} }
private void selectNextDifficulty(int direction) private void selectNextDifficulty(int direction)