From 661d5668e9328459c27b4c1ea3ab056ce9e48fd0 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 10 Mar 2024 14:43:12 -0500 Subject: [PATCH] branch_tier.cpp --- src/branch_tier.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/branch_tier.cpp b/src/branch_tier.cpp index 62c1ea11..78897189 100644 --- a/src/branch_tier.cpp +++ b/src/branch_tier.cpp @@ -58,9 +58,14 @@ BranchTier::BranchTier(toml::value const &v_) for(auto const &branch : branches) { + bool enabled; std::string type; auto const &table = branch.as_table(); + enabled = toml::find_or(v_,"enabled",false); + if(!enabled) + continue; + type = table.at("type").as_string(); if(type == "literal") l::load_branch_literal(table,_branches);