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

3.2: Fixes crash after using enums in export variables #42936

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

timothyqiu
Copy link
Member

This PR fixes #38168.

Accessing static_cast<ConstantNode *>(subexpr)->value when subexpr's type is not constant yields invalid value, thus the crash.

This is a PR against the 3.2 branch because the new GDScript is now merged into master, replacing export keyword with @export annotation, so the issue is no longer reproduciable on the master branch.

@akien-mga akien-mga merged commit da4f778 into godotengine:3.2 Oct 20, 2020
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the error-return branch October 20, 2020 13:08
@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 21, 2021
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