Skip to content

Commit

Permalink
Move configurable initializations after RTN tree insertion (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
Knute Lingaard authored Apr 13, 2023
1 parent 1e7ac13 commit 87bbc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sparta/sparta/simulation/ResourceTreeNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ namespace sparta
<< getLocation() << " cannot be null";
}

initConfigurables_();

if(parent != nullptr){
parent->addChild(this); // Do not inherit parent state
}

initConfigurables_();
}

//! \brief Alternate Constructor
Expand Down

0 comments on commit 87bbc31

Please sign in to comment.