Fix assert when Menu is empty

This commit is contained in:
CommanderRedYT
2022-05-24 11:54:44 +02:00
committed by GitHub
parent e953ec9216
commit 529c771ea3

View File

@@ -69,7 +69,7 @@ void MenuDisplay::update()
item.update(); item.update();
}); });
if (getMenuItem(m_selectedIndex).skipScroll()) if (m_selectedIndex >= 0 && getMenuItem(m_selectedIndex).skipScroll())
{ {
if (offset > 0) if (offset > 0)
{ {