mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
- fixed infinite loop with list menus that have no selectable item.
This commit is contained in:
parent
565a5acd85
commit
4fdbe81a13
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,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