From 37fa4991494100bdd44c48c366bce9c3617c5e34 Mon Sep 17 00:00:00 2001 From: MistEO Date: Sun, 1 Oct 2023 14:02:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E6=9D=BF=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8C=E7=88=B6=E7=B1=BB=E4=B8=8E=E5=AD=90?= =?UTF-8?q?=E7=B1=BB=E6=A8=A1=E6=9D=BF=E6=95=B0=E4=B8=8D=E7=9B=B8=E5=90=8C?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=98=88=E5=80=BC=E5=A1=AB=E5=85=85=E5=AD=90=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Config/TaskData.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MaaCore/Config/TaskData.cpp b/src/MaaCore/Config/TaskData.cpp index e7fc3e7bc7..dc7a049791 100644 --- a/src/MaaCore/Config/TaskData.cpp +++ b/src/MaaCore/Config/TaskData.cpp @@ -746,6 +746,8 @@ asst::TaskData::taskptr_t asst::TaskData::generate_match_task_info(std::string_v auto threshold_opt = task_json.find("threshold"); if (!threshold_opt) { match_task_info_ptr->templ_thresholds = default_ptr->templ_thresholds; + match_task_info_ptr->templ_thresholds.resize(match_task_info_ptr->templ_names.size(), + default_ptr->templ_thresholds.back()); } else if (threshold_opt->is_number()) { match_task_info_ptr->templ_thresholds = { threshold_opt->as_double() };