Fix MPROP_SHOWPAGE

This commit is contained in:
OciXCrom 2018-09-10 15:37:57 +02:00
parent f1fc6912eb
commit 06498fc288

View File

@ -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<cell>(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<cell>(pMenu->items_per_page);
case MPROP_PERPAGE: return pMenu->items_per_page;
case MPROP_BACKNAME:
{
if (paramsNum < arg_bufferlen)