From 5208a30bdbbd969e47fdb8e6052cc0f4751f4164 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Sat, 20 Nov 2021 23:14:55 +0100 Subject: [PATCH] / potential scrollbar crash, will need refactor of filter wheel scrollbar somewhat --- scripts/songselect/filterwheel.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/songselect/filterwheel.lua b/scripts/songselect/filterwheel.lua index 03208f3..a045b24 100644 --- a/scripts/songselect/filterwheel.lua +++ b/scripts/songselect/filterwheel.lua @@ -271,6 +271,8 @@ function drawScrollbar() local total = game.GetSkinSetting('_songWheelScrollbarTotal') local index = game.GetSkinSetting('_songWheelScrollbarIndex') + if (index == nil) then return end; + gfx.BeginPath() local fillW = 27*0.85 local fillH = 65*0.85