- 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 committed by drfrag
parent e88706542c
commit a20c0a0e02

View file

@ -143,7 +143,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)
{