2
0
mirror of https://github.com/alliedmodders/amxmodx.git synced 2025-07-23 05:31:45 +03:00

fixed another newmenu calc bug

This commit is contained in:
David Anderson 2006-06-06 17:59:38 +00:00
parent 7f57e8377a
commit b3b9e72b01

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