Fix MPROP_SHOWPAGE option not working as expected

Typo from #473.
This commit is contained in:
Vincent Herbet 2019-05-29 11:47:57 +02:00 committed by GitHub
parent 486da2f44b
commit 096dae9095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1043,7 +1043,7 @@ static cell AMX_NATIVE_CALL menu_setprop(AMX *amx, cell *params)
}
case MPROP_SHOWPAGE:
{
pMenu->showPageNumber = (get_amxaddr(amx, params[3]) != 0);
pMenu->showPageNumber = *get_amxaddr(amx, params[3]) != 0;
break;
}
case MPROP_SET_NUMBER_COLOR: