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

weapon_custom_scripted fixes #279

Merged

Conversation

samisalreadytaken
Copy link

Fixes a regression in hook calls. This was caused by putting CanRunInScope(), which looks up the hook function, behind an assertion inside ScriptHook_t::Call(), so this would only work in debug builds. This was only an issue in weapon_custom_scripted because this is the only place hook functions are manually cached. Quite messy...


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

@Blixibon Blixibon merged commit f8d8cf6 into mapbase-source:develop Feb 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants