Fixed an issue where "exit" wasn't working properly on pages with valid next and more selections.

This commit is contained in:
Steve Dudenhoeffer 2007-04-20 02:59:35 +00:00
parent 201d65749e
commit 599029b68e

View File

@ -243,7 +243,7 @@ int Menu::PagekeyToItem(page_t page, item_t key)
} }
} }
key = new_key; key = new_key;
if (key > items_per_page && (key-items_per_page<3)) if (key > items_per_page && (key-items_per_page<=3))
{ {
unsigned int num = key - items_per_page - 1; unsigned int num = key - items_per_page - 1;
static int map[] = {MENU_BACK, MENU_MORE, MENU_EXIT}; static int map[] = {MENU_BACK, MENU_MORE, MENU_EXIT};