From 64d30b9ef8c5324e35672395a72b90cc0c93d47b Mon Sep 17 00:00:00 2001 From: JT Traub Date: Mon, 16 Sep 2024 18:48:26 -0700 Subject: [PATCH] Fix bug where a passed-through hex showed up in order template --- text_report_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_report_generator.cpp b/text_report_generator.cpp index 759bc8e0..7f635847 100644 --- a/text_report_generator.cpp +++ b/text_report_generator.cpp @@ -897,7 +897,7 @@ void TextReportGenerator::output_template(ostream& f, const json& report, int te if (report.contains("regions") && !report["regions"].empty()) { for(const auto& region : report["regions"]) { // Only output the region template if you have actual units in the region. - if (region.contains("present")) output_region_template(f, region, template_type, show_region_depth); + if (region.value("present", false)) output_region_template(f, region, template_type, show_region_depth); } } f << "\n#end\n\n";