diff --git a/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h b/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h index 46bc3526f..e416ecaa9 100644 --- a/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h +++ b/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEO.h @@ -53,9 +53,15 @@ private: if(tree!=NULL)delete tree; tree=NULL; if(other.tree!=NULL)tree = new phylotreeIND(other.get_tree()); - if(!other.invalidObjectiveVector())this->objectiveVector( other.objectiveVector() ); + if(!other.invalidObjectiveVector()) + this->objectiveVector( other.objectiveVector() ); + else this->invalidateObjectiveVector(); + if(!other.invalidFitness())this->fitness( other.fitness() ); + else this->invalidateFitness(); + if(!other.invalidDiversity())this->diversity( other.diversity() ); + else this->invalidateDiversity(); } public: