diff --git a/src/menudisplay.cpp b/src/menudisplay.cpp index 7a44e63..bfdcb68 100644 --- a/src/menudisplay.cpp +++ b/src/menudisplay.cpp @@ -69,7 +69,7 @@ void MenuDisplay::update() item.update(); }); - if (getMenuItem(m_selectedIndex).skipScroll()) + if (m_selectedIndex >= 0 && getMenuItem(m_selectedIndex).skipScroll()) { if (offset > 0) {