Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recursion issue with show_menu and newmenus #335

Merged
merged 1 commit into from
Jan 16, 2016

Conversation

Arkshine
Copy link
Member

Reported by Depresie here: https://forums.alliedmods.net/showthread.php?t=277625.

Side-effect of #140 bugfix. Now that show_menu closes previous newmenu, it doesn't consider that calling callback could display another newmenus. This patch applies the same infinite loop protection than menu_display.

@Arkshine Arkshine added the bug label Jan 14, 2016
@Nextra
Copy link
Contributor

Nextra commented Jan 14, 2016

I think the new function should use get_menu_by_id(), it makes for much cleaner code.

@Arkshine Arkshine force-pushed the fix/closing-newmenus branch 4 times, most recently from 1cda687 to 78dfdff Compare January 15, 2016 08:14
@Nextra
Copy link
Contributor

Nextra commented Jan 15, 2016

🚢

Arkshine added a commit that referenced this pull request Jan 16, 2016
Fix recursion issue with show_menu and newmenus
@Arkshine Arkshine merged commit 89dda48 into alliedmodders:master Jan 16, 2016
@Arkshine Arkshine deleted the fix/closing-newmenus branch January 16, 2016 11:17
@Arkshine Arkshine added the core label Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants