Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 69ceb139 authored by David Parsons's avatar David Parsons
Browse files

Indiv Copy Ctor now copies the grid_cell ptr

parent 31e78d1c
No related branches found
No related tags found
No related merge requests found
......@@ -268,6 +268,8 @@ Individual::Individual(const Individual& other) {
id_ = other.id_;
rank_ = other.rank_;
grid_cell_ = other.grid_cell_;
evaluated_ = other.evaluated_;
transcribed_ = other.transcribed_;
translated_ = other.translated_;
......
......@@ -566,7 +566,7 @@ class Individual : public Observable {
double fitness_;
// When using structured population, this is the cell the individual is in
GridCell* grid_cell_ = NULL;
GridCell* grid_cell_ = nullptr;
// int16_t x, y;
// The chromosome and plasmids (if allowed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment