From 8e03e67a8f3ac821e34b4c00669bf444cbb63489 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 10 Jun 2006 22:12:46 +0000 Subject: [PATCH] fixed a menu exit calculation bug in newmenus (omg) --- amxmodx/newmenus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/newmenus.cpp b/amxmodx/newmenus.cpp index db75dffc..6faf1dbf 100755 --- a/amxmodx/newmenus.cpp +++ b/amxmodx/newmenus.cpp @@ -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;