- fixed infinite loop with list menus that have no selectable item.

This commit is contained in:
Christoph Oelckers 2020-10-17 15:21:20 +02:00
parent 565a5acd85
commit 4fdbe81a13

View file

@ -147,7 +147,7 @@ class ListMenu : Menu
override bool MenuEvent (int mkey, bool fromcontroller)
{
int oldSelect = mDesc.mSelectedItem;
int startedAt = mDesc.mSelectedItem;
int startedAt = max(0, mDesc.mSelectedItem);
switch (mkey)
{