From ebef81f78e32a55e32ddc2cf03876370a36f8f0d Mon Sep 17 00:00:00 2001 From: MistEO Date: Mon, 14 Feb 2022 23:11:15 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=85=AC=E6=8B=9B=E5=88=B8=EF=BC=8C=E6=81=B0=E5=A5=BD=E5=8F=88?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=88=B7=E6=96=B0=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=EF=BC=8C=E5=8D=A1=E4=BD=8F=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/MistEO/MeoAssistantArknights/issues/177 --- src/MeoAssistant/AutoRecruitTask.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistant/AutoRecruitTask.cpp b/src/MeoAssistant/AutoRecruitTask.cpp index 600ba477ff..38f766ae86 100644 --- a/src/MeoAssistant/AutoRecruitTask.cpp +++ b/src/MeoAssistant/AutoRecruitTask.cpp @@ -135,7 +135,9 @@ bool asst::AutoRecruitTask::calc_and_recruit() return false; } if (std::find(m_confirm_level.cbegin(), m_confirm_level.cend(), maybe_level) != m_confirm_level.cend()) { - confirm(); + if (!confirm()) { + return false; + } } else { click_return_button();