Skip to content

Commit b4123f9

Browse files
committed
resize node_mutations and corrected_num_descendants when expanding tree
1 parent 140e35f commit b4123f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tree/tree.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12682,6 +12682,11 @@ void cmaple::Tree::expandTreeByOneLessInfoSeq(PhyloNode& node,
1268212682
static_cast<PositionType>(aln->ref_seq.size()), aln, true) == 1)
1268312683
new_min_blength = 0;
1268412684

12685+
// expand node_mutations by 2 nodes,
12686+
// which will be added to the tree during the expansion
12687+
node_mutations.resize(nodes.size() + 2);
12688+
corrected_num_descendants.resize(nodes.size() + 2);
12689+
1268512690
// connect the new node to the tree
1268612691
connectNewSample2Branch<num_states>(
1268712692
lower_regions, seq_name_index, node_index, node, top_distance, 0,

0 commit comments

Comments
 (0)