mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 修复偶现战斗中干员名识别识别崩溃的问题
This commit is contained in:
@@ -251,6 +251,11 @@ bool asst::BattleHelper::update_deployment(bool init, const cv::Mat& reusable)
|
||||
}
|
||||
}
|
||||
|
||||
// 这时候即使名字不合法也只能凑合用了,但是为空还是不行的
|
||||
if (name.empty()) {
|
||||
Log.error("name is empty");
|
||||
continue;
|
||||
}
|
||||
oper.name = name;
|
||||
remove_cooling_from_battlefield(oper);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user