fix: 修复偶现战斗中干员名识别识别崩溃的问题

This commit is contained in:
MistEO
2023-01-11 11:34:58 +08:00
parent 0b203b6207
commit bd2dec8a7e

View File

@@ -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);