From 3e517ad4d0b1d089841cafe50dc4f5dc062250c1 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 24 Oct 2015 11:58:32 +0300 Subject: [PATCH] Fixed selection of empty items in Video Mode menu See http://forum.zdoom.org/viewtopic.php?t=49794 --- src/menu/optionmenuitems.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/menu/optionmenuitems.h b/src/menu/optionmenuitems.h index e87e78483..a1fff64c7 100644 --- a/src/menu/optionmenuitems.h +++ b/src/menu/optionmenuitems.h @@ -942,6 +942,14 @@ public: { return mMaxValid >= 0; } + + void Ticker() + { + if (Selectable() && mSelection > mMaxValid) + { + mSelection = mMaxValid; + } + } };