mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-02 17:01:49 +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)
|
||||
{
|
||||
int oldSelect = mDesc.mSelectedItem;
|
||||
int startedAt = mDesc.mSelectedItem;
|
||||
int startedAt = max(0, mDesc.mSelectedItem);
|
||||
|
||||
switch (mkey)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue