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

Model::bodiesToMove(): bug in iteration method #60

Open
basil-huber opened this issue Oct 21, 2016 · 0 comments
Open

Model::bodiesToMove(): bug in iteration method #60

basil-huber opened this issue Oct 21, 2016 · 0 comments
Labels

Comments

@basil-huber
Copy link

in Model::bodiesToMove(), we loop over bodies_ which is a std::map with

for(int i = 0; i < bodies_.size(); i++){
    bodies_[i]

If the keys of bodies_ are not starting with 0 and consecutive, we access non-existing elements, which leads to a seg fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant