mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 23:54:17 +00:00
- added missing range check for scrolling down an option menu with the mouse wheel.
This commit is contained in:
parent
760bffbf06
commit
a491085822
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class OptionMenu : Menu
|
||||||
mDesc.mScrollPos += 2;
|
mDesc.mScrollPos += 2;
|
||||||
VisBottom += 2;
|
VisBottom += 2;
|
||||||
}
|
}
|
||||||
else
|
else if (VisBottom < mDesc.mItems.Size()-1)
|
||||||
{
|
{
|
||||||
mDesc.mScrollPos++;
|
mDesc.mScrollPos++;
|
||||||
VisBottom++;
|
VisBottom++;
|
||||||
|
|
Loading…
Reference in a new issue