From b3b9e72b0184f2f8307ae31223703d4dcb1e3161 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 6 Jun 2006 17:59:38 +0000 Subject: [PATCH] fixed another newmenu calc bug --- amxmodx/newmenus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/newmenus.cpp b/amxmodx/newmenus.cpp index c31f775a..db75dffc 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;