Skip to content

Commit 2b67033

Browse files
committed
Fix menu_addtext 3rd parameter misbehaviour
Actually it is a copy-paste of menu_addblack which slot parameter is the 2nd one. Applied from upstream repo: alliedmodders#1124
1 parent 34f21a2 commit 2b67033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amxmodx/newmenus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ static cell AMX_NATIVE_CALL menu_addtext(AMX *amx, cell *params)
763763
{
764764
GETMENU(params[1]);
765765

766-
if (params[2] && (!pMenu->items_per_page && pMenu->GetItemCount() >= 10))
766+
if (params[3] && (!pMenu->items_per_page && pMenu->GetItemCount() >= 10))
767767
{
768768
LogError(amx, AMX_ERR_NATIVE, "Non-paginated menus are limited to 10 items.");
769769
return 0;

0 commit comments

Comments
 (0)