diff --git a/evogym/simulator/SimulatorCPP/ObjectCreator.cpp b/evogym/simulator/SimulatorCPP/ObjectCreator.cpp index f93c670b..bd30fcf4 100644 --- a/evogym/simulator/SimulatorCPP/ObjectCreator.cpp +++ b/evogym/simulator/SimulatorCPP/ObjectCreator.cpp @@ -403,7 +403,7 @@ bool ObjectCreator::read_object_from_array(string object_name, Matrix edge_top_index != NULL) - current->edge_bot_index = top->edge_top_index; + current->edge_bot_index = bot->edge_top_index; if (current->edge_bot_index == NULL) { current->edge_bot_index = make_edge(current->point_bot_left_index, current->point_bot_right_index, abs(cell_size.x()), rigid_main_edge_spring_const); }