Skip to content

Commit

Permalink
Anchor boolean was out of place.
Browse files Browse the repository at this point in the history
  • Loading branch information
danv61 committed Aug 6, 2021
1 parent 4834104 commit c2106d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NFsim_v1.11/src/NFcore/moleculeType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void MoleculeType::init(


//Register myself with the system, and get an ID number
this->bHasAnchors = hasAnchors;
this->system = system;
this->type_id = this->system->addMoleculeType(this);

Expand All @@ -168,8 +169,7 @@ void MoleculeType::init(
//
// given the list of anchors, match them against list of locations to find the indices of the anchors.
//
this->bHasAnchors = hasAnchors;
if (bHasAnchors){
if (bHasAnchors){
vector<string>& locationNames = possibleCompStates.at(NFcore::Complex::INDEX_VCELL_LOCATION);
for (size_t i=0; i<locationNames.size();i++){
bool bFoundInAnchorNames = false;
Expand Down

0 comments on commit c2106d0

Please sign in to comment.