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 assertion failed in Sfx::Sfx(const Json &jsonObj) #5668

Merged

Conversation

Max5377
Copy link
Contributor

@Max5377 Max5377 commented Nov 20, 2023

AssertionFailed1

Fix for this error, because Sfx::Sfx(const Json &jsonObj) was trying to get pos and vel keys from passed jsonObj itself, when it should get it from jsonObj[sfx] object.
This happened randomly when loading the save.

Fix for "m_value.object->find(key) != m_value.object->end()" assertion error, because Sfx::Sfx(const Json &jsonObj) was trying to get "pos" and "vel" keys from passed "jsonObj" itself, when it should get it from "jsonObj[sfx]" object.
@Web-eWorks Web-eWorks merged commit ddd6515 into pioneerspacesim:master Nov 20, 2023
4 checks passed
@Max5377 Max5377 deleted the fix-assertion-sfx-constructor branch November 21, 2023 13:45
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.

None yet

2 participants