From 0f2c88265e0f1f2a8f55572afd31916fb48b0e11 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 26 Feb 2023 23:41:28 -0800 Subject: [PATCH] scan IN_PLAY last so more specific vectors are scanned first --- plugins/buildingplan/buildingplan_cycle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/buildingplan/buildingplan_cycle.cpp b/plugins/buildingplan/buildingplan_cycle.cpp index 329ee3b99..375e26212 100644 --- a/plugins/buildingplan/buildingplan_cycle.cpp +++ b/plugins/buildingplan/buildingplan_cycle.cpp @@ -241,6 +241,7 @@ struct VectorsToScanLast { vectors.push_back(df::job_item_vector_id::BOULDER); vectors.push_back(df::job_item_vector_id::WOOD); vectors.push_back(df::job_item_vector_id::BAR); + vectors.push_back(df::job_item_vector_id::IN_PLAY); } }; @@ -254,7 +255,7 @@ void buildingplan_cycle(color_ostream &out, Tasks &tasks, for (auto it = tasks.begin(); it != tasks.end(); ) { auto vector_id = it->first; - // we could make this a set, but it's only three elements + // we could make this a set, but it's only a few elements if (std::find(vectors_to_scan_last.vectors.begin(), vectors_to_scan_last.vectors.end(), vector_id) != vectors_to_scan_last.vectors.end()) {