lis-epfl / robogen

RoboGen - Robot generation through artificial evolution
http://www.robogen.org
GNU General Public License v3.0
27 stars 16 forks source link

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

Open basil-huber opened 8 years ago

basil-huber commented 8 years ago

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