mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 04:51:13 +00:00
- fixed infinite loop with list menus that have no selectable item.
This commit is contained in:
parent
e88706542c
commit
a20c0a0e02
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class ListMenu : Menu
|
||||||
override bool MenuEvent (int mkey, bool fromcontroller)
|
override bool MenuEvent (int mkey, bool fromcontroller)
|
||||||
{
|
{
|
||||||
int oldSelect = mDesc.mSelectedItem;
|
int oldSelect = mDesc.mSelectedItem;
|
||||||
int startedAt = mDesc.mSelectedItem;
|
int startedAt = max(0, mDesc.mSelectedItem);
|
||||||
|
|
||||||
switch (mkey)
|
switch (mkey)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue