Skip to content

Commit

Permalink
Fix again a menu regression (behavior change) due to typos in #471 (#636
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Arkshine committed Nov 3, 2018
1 parent 5c5fbd8 commit 9eb1f42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions amxmodx/amxmodx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,6 @@ static cell AMX_NATIVE_CALL show_menu(AMX *amx, cell *params) /* 3 param */
// Fire newmenu callback so closing it can be handled by the plugin
if (!CloseNewMenus(pPlayer))
{
LogError(amx, AMX_ERR_NATIVE, "Plugin called menu_display when item=MENU_EXIT");
return 2;
}

Expand Down Expand Up @@ -1318,7 +1317,7 @@ static cell AMX_NATIVE_CALL show_menu(AMX *amx, cell *params) /* 3 param */
return 0;
}

if (closeMenu(index))
if (closeMenu(index) == 2)
{
return 0;
}
Expand Down

0 comments on commit 9eb1f42

Please sign in to comment.