From b5ac22b799c4d029e851d5aff0876f86670144aa Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Thu, 13 May 2004 02:40:10 +0000 Subject: [PATCH] - fixed potential crash SVN-Revision: 1150 --- src/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/menu.cpp b/src/menu.cpp index baa703252..5b567c555 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -480,6 +480,9 @@ Menu::action() } menuaction = MENU_ACTION_NONE; + + if (active_item >= item.size()) + active_item = int(item.size()) - 1; } int -- 2.11.0