From d7bb276e4baa6827ee52a0ce573eaa7c8c01c1d0 Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 18 May 2022 03:06:52 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA=E5=8F=AF=E7=94=A8=E5=B9=B2=E5=91=98?= =?UTF-8?q?=E4=B8=8D=E8=B6=B3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/502 --- src/MeoAssistant/InfrastProductionTask.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistant/InfrastProductionTask.cpp b/src/MeoAssistant/InfrastProductionTask.cpp index 28f8ea8541..b0bdd75927 100644 --- a/src/MeoAssistant/InfrastProductionTask.cpp +++ b/src/MeoAssistant/InfrastProductionTask.cpp @@ -469,6 +469,9 @@ bool asst::InfrastProductionTask::opers_choose() Task.get("InfrastOperNameHash"))->dist_threshold; const int face_hash_thres = std::dynamic_pointer_cast( Task.get("InfrastOperFaceHash"))->dist_threshold; + + int count = 0; + while (true) { if (need_exit()) { return false; @@ -506,7 +509,6 @@ bool asst::InfrastProductionTask::opers_choose() }); cur_all_opers.erase(remove_iter, cur_all_opers.end()); Log.trace("after mood filter, opers size:", cur_all_opers.size()); - int count = 0; for (auto opt_iter = m_optimal_combs.begin(); opt_iter != m_optimal_combs.end();) { Log.trace("to find", opt_iter->skills.begin()->names.front()); auto find_iter = std::find_if(