Merge pull request #10 from CommanderRedYT/patch-1

Fix assert when Menu is empty
This commit is contained in:
2022-05-24 13:23:18 +02:00
committed by GitHub

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)
{ {