From d0e545fa010273b15754fef12ada5d679b5be6bd Mon Sep 17 00:00:00 2001 From: MistEO Date: Sun, 31 Oct 2021 03:33:07 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=E5=AE=BF=E8=88=8D?= =?UTF-8?q?=E7=9A=84=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistance/InfrastDormTask.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MeoAssistance/InfrastDormTask.cpp b/src/MeoAssistance/InfrastDormTask.cpp index 44c6438f6f..5e40ca2965 100644 --- a/src/MeoAssistance/InfrastDormTask.cpp +++ b/src/MeoAssistance/InfrastDormTask.cpp @@ -36,11 +36,14 @@ bool asst::InfrastDormTask::run() int quantity_resting = 0; for (const auto& mood_info : mood_result) { + if (quantity_selected >= MaxNumOfOpers) { + break; + } switch (mood_info.smiley.type) { case InfrastSmileyType::Rest: // 如果当前页面休息完成的人数超过5个,说明已经已经把所有心情不满的滑过一遍、没有更多的了,直接退出即可 - if (++quantity_resting >= MaxNumOfOpers) { + if (++quantity_resting > MaxNumOfOpers) { click_confirm_button(); return true; }