- added missing range check for scrolling down an option menu with the mouse wheel.

This commit is contained in:
Christoph Oelckers 2022-04-18 00:09:38 +02:00
parent 760bffbf06
commit a491085822
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class OptionMenu : Menu
mDesc.mScrollPos += 2;
VisBottom += 2;
}
else
else if (VisBottom < mDesc.mItems.Size()-1)
{
mDesc.mScrollPos++;
VisBottom++;