Merge pull request #10 from CommanderRedYT/patch-1
Fix assert when Menu is empty
This commit is contained in:
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user