mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix: 修复BattleHelper中的意外报错
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user