From 06498fc2888c56ce7ddc546f9e90ad62abd6336d Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Mon, 10 Sep 2018 15:37:57 +0200 Subject: [PATCH] Fix MPROP_SHOWPAGE --- amxmodx/newmenus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/newmenus.cpp b/amxmodx/newmenus.cpp index 9e2b13df..59706754 100755 --- a/amxmodx/newmenus.cpp +++ b/amxmodx/newmenus.cpp @@ -1089,7 +1089,7 @@ static cell AMX_NATIVE_CALL menu_getprop(AMX *amx, cell *params) switch (params[arg_prop]) { case MPROP_PAGE_CALLBACK: return pMenu->pageCallback; - case MPROP_SHOWPAGE: return pMenu->showPageNumber; + case MPROP_SHOWPAGE: return static_cast(pMenu->showPageNumber); case MPROP_SET_NUMBER_COLOR: { if (paramsNum < arg_bufferlen) @@ -1101,7 +1101,7 @@ static cell AMX_NATIVE_CALL menu_getprop(AMX *amx, cell *params) set_amxstring(amx, params[arg_buffer], pMenu->m_ItemColor.chars(), params[arg_bufferlen]); break; } - case MPROP_PERPAGE: return static_cast(pMenu->items_per_page); + case MPROP_PERPAGE: return pMenu->items_per_page; case MPROP_BACKNAME: { if (paramsNum < arg_bufferlen)