Skip to content

Commit

Permalink
- fixed infinite loop with list menus that have no selectable item.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 17, 2020
1 parent 565a5ac commit 4fdbe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/ui/menu/listmenu.zs
Expand Up @@ -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)
{
Expand Down

0 comments on commit 4fdbe81

Please sign in to comment.