fix: 基建专精干员名切割错误

This commit is contained in:
status102
2024-03-13 10:00:43 +08:00
parent b57a27fe2e
commit ba449e89f2

View File

@@ -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<OcrTaskInfo>("CharsNameOcrReplace")->replace_map;
const auto& [regex, new_str] : replace_map) {
if (std::regex_search(m_operator_name, std::regex(regex))) {