Open basil-huber opened 8 years ago
in Model::bodiesToMove(), we loop over bodies_ which is a std::map with
bodies_
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
in Model::bodiesToMove(), we loop over
bodies_
which is a std::map withIf the keys of
bodies_
are not starting with 0 and consecutive, we access non-existing elements, which leads to a seg fault