Skip to content

Fix assertion failed in Sfx::Sfx(const Json &jsonObj) - #5668

Merged
sturnclaw merged 1 commit into
pioneerspacesim:masterfrom
Max5377:fix-assertion-sfx-constructor
Nov 20, 2023
Merged

Fix assertion failed in Sfx::Sfx(const Json &jsonObj)#5668
sturnclaw merged 1 commit into
pioneerspacesim:masterfrom
Max5377:fix-assertion-sfx-constructor

Conversation

@Max5377

@Max5377 Max5377 commented Nov 20, 2023

Copy link
Copy Markdown
Contributor

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.
@sturnclaw
sturnclaw merged commit ddd6515 into pioneerspacesim:master Nov 20, 2023
@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.

2 participants