diff --git a/src/aevol_modify.cpp b/src/aevol_modify.cpp index c1b405222a72a7206e0c7c4a2c9fd8da8f3d243e..a4720c1741a70c9eb91fbdbbec86ef78a2c3a328 100644 --- a/src/aevol_modify.cpp +++ b/src/aevol_modify.cpp @@ -339,6 +339,7 @@ int main(int argc, char* argv[]) { indiv->annotated_chromosome_->dna_ = Dna_7::make_from_sequence( old_world->grid(0, 0)->individual()->genetic_unit(0).dna()->data(), old_world->grid(0, 0)->individual()->genetic_unit(0).dna()->length()); + indiv->annotated_chromosome_->dna_->set_chrsm(indiv->annotated_chromosome_); indiv->annotated_chromosome_->dna_->set_parent_length( old_world->grid(0, 0)->individual()->genetic_unit(0).dna()->length()); indiv->annotated_chromosome_->dna_->set_indiv(indiv); @@ -735,6 +736,7 @@ int main(int argc, char* argv[]) { indiv->annotated_chromosome_->dna_ = Dna_7::make_from_sequence( old_world->grid(x, y)->individual()->genetic_unit(0).dna()->data(), old_world->grid(x, y)->individual()->genetic_unit(0).dna()->length()); + indiv->annotated_chromosome_->dna_->set_chrsm(indiv->annotated_chromosome_); indiv->annotated_chromosome_->dna_->set_parent_length( old_world->grid(x,y)->individual()->genetic_unit(0).dna()->length()); indiv->annotated_chromosome_->dna_->set_indiv(indiv);