From 737a694adfba43e12df482c77433bda7104085c1 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 7 Feb 2024 22:47:08 -0600 Subject: [PATCH] branches2.cpp --- src/branches2.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/branches2.cpp b/src/branches2.cpp index 57e4c8af..84a3ada5 100644 --- a/src/branches2.cpp +++ b/src/branches2.cpp @@ -28,13 +28,9 @@ Branches2::copy_enabled_rw(Branches2 &b_) const { if(b_._branches.size() < _branches.size()) b_._branches.resize(_branches.size()); - - for(auto &bt : ) - { - BranchTier newbt; - bt.copy_enabled_rw(newbt); - } + for(int i = 0; i < _branches.size(); i++) + _branches[i].copy_enabled_rw(b_._branches[i]); } int