From ba449e89f2c08fbb4de83175713412bd0129318f Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:00:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9F=BA=E5=BB=BA=E4=B8=93=E7=B2=BE?= =?UTF-8?q?=E5=B9=B2=E5=91=98=E5=90=8D=E5=88=87=E5=89=B2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaCore/Task/Infrast/InfrastTrainingTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaaCore/Task/Infrast/InfrastTrainingTask.cpp b/src/MaaCore/Task/Infrast/InfrastTrainingTask.cpp index 11616d6d4d..703aecef61 100644 --- a/src/MaaCore/Task/Infrast/InfrastTrainingTask.cpp +++ b/src/MaaCore/Task/Infrast/InfrastTrainingTask.cpp @@ -67,8 +67,8 @@ bool asst::InfrastTrainingTask::analyze_status() return false; } - // ']'前为干员名,']'后为技能名 - m_operator_name = raw_str.substr(0, separation_pos - 1); + // ']'前为干员名,']'后为技能名s + m_operator_name = raw_str.substr(0, separation_pos); for (const auto& replace_map = Task.get("CharsNameOcrReplace")->replace_map; const auto& [regex, new_str] : replace_map) { if (std::regex_search(m_operator_name, std::regex(regex))) {