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)