From b6b28aed416cf88bd206fb7f7fb7b250c55578f6 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 7 Feb 2024 22:38:19 -0600 Subject: [PATCH] branches2.cpp --- src/branches2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/branches2.cpp b/src/branches2.cpp index db718873..b804f379 100644 --- a/src/branches2.cpp +++ b/src/branches2.cpp @@ -24,10 +24,11 @@ Branches2::Branches2(toml::value const &v_) } void -Branches2::copy_enabled_rw(Branches2 &b_) +Branches2::copy_enabled_rw(Branches2 &b_) const { - _branches.resize(b_._branches.size()); - for(auto &bt : _branches) + if(b_._branches.size() < _branches.size()) + b_._branches.resize(_branches.size()); + for(auto &bt : ) { BranchTier newbt;