diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 22b8820..ae02fa8 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -252,7 +252,7 @@ function drawSong(song, y) if (not song) then return end; local songX = desw/2+28 - local selectedSongDifficulty = song.difficulties[selectedDifficulty] + local selectedSongDifficulty = song.difficulties[math.min(selectedDifficulty, #song.difficulties)] -- Limit selecting difficulty that is above the number that the song has if not selectedSongDifficulty then return;