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

In StateImpl::fromXmlElement(), clear subsystems. #500

Conversation

chrisdembia
Copy link
Member

Previously, calling fromXmlElement() multiple times on the same State caused
subsystems to erroneously pile up.

This PR also reserves the appropriate memory for the subsystem variable.

Previously, calling `fromXmlElement()` multiple times on the same State caused
subsystems to erroneously pile up.
@sherm1 sherm1 merged commit ae4deaa into simbody:feature_state_serialization Jun 3, 2016
@chrisdembia chrisdembia deleted the state_from_xml_clear_subsystems branch June 3, 2016 20:30
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