Fixed selection of empty items in Video Mode menu

See http://forum.zdoom.org/viewtopic.php?t=49794
This commit is contained in:
alexey.lysiuk 2015-10-24 11:58:32 +03:00
parent 117783a785
commit 3e517ad4d0

View file

@ -942,6 +942,14 @@ public:
{ {
return mMaxValid >= 0; return mMaxValid >= 0;
} }
void Ticker()
{
if (Selectable() && mSelection > mMaxValid)
{
mSelection = mMaxValid;
}
}
}; };