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

GiveAllItems command don't check if instance is const #38

Open
bogu9821 opened this issue Nov 1, 2024 · 0 comments
Open

GiveAllItems command don't check if instance is const #38

bogu9821 opened this issue Nov 1, 2024 · 0 comments

Comments

@bogu9821
Copy link
Contributor

bogu9821 commented Nov 1, 2024

Only instances/prototypes with the const flag can be used to create a valid object.
Items can now be created from instance variables, such as var c_item, which can result in a crash.
Add a flag check after the type check and this command and it will work fine.
https://github.com/Franisz/zUtilities/blob/583795192ee3df2084bb71a4d6cb547674ff94a7/zUtilities/Commands.cpp#L17#L37

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

No branches or pull requests

1 participant