fix: 修复BattleHelper中的意外报错

This commit is contained in:
status102
2025-02-19 13:04:10 +08:00
parent 10ce238ebc
commit 8b4e768cb4

View File

@@ -239,9 +239,8 @@ bool asst::BattleHelper::update_deployment(bool init, const cv::Mat& reusable, b
// 点完部署区的一个干员之后,他的头像会放大;其他干员的位置都被挤开了,不在原来的位置了
// 所以只有第一个干员可以直接点,后面干员都要重新识别一下位置
if (!name_image.empty()) {
Matcher re_matcher;
Matcher re_matcher(name_image);
re_matcher.set_task_info("BattleAvatarReMatch");
re_matcher.set_image(name_image);
re_matcher.set_templ(oper.avatar);
auto rematched = re_matcher.analyze();
if (rematched) {