fixed a menu exit calculation bug in newmenus (omg)

This commit is contained in:
David Anderson 2006-06-10 22:12:46 +00:00
parent 66d04f8def
commit 8e03e67a8f

View File

@ -151,7 +151,7 @@ int Menu::PagekeyToItem(page_t page, item_t key)
if (num_pages == 1 || !items_per_page)
{
if (m_AlwaysExit || key > m_Items.size())
if (m_AlwaysExit && key > m_Items.size())
return MENU_EXIT;
else
return key-1;