mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Selected conf tool menu item can be out of bounds
This commit is contained in:
@@ -2082,6 +2082,9 @@ protected:
|
||||
selected++;
|
||||
}
|
||||
|
||||
if (selected > items.size() - 1)
|
||||
selected = items.size() - 1;
|
||||
|
||||
if (selected >= 0 && items[(unsigned int)selected].size() == 0) selected = -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user