mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: 干员仓储识别未跳过数据查找失败的干员
This commit is contained in:
@@ -147,6 +147,11 @@ bool asst::OperBoxImageAnalyzer::opers_analyze()
|
||||
|
||||
OperBoxInfo box;
|
||||
const auto& oper_data = BattleData.find_oper(oper.role, name);
|
||||
if (!oper_data) {
|
||||
LogError << __FUNCTION__ << "not find oper, role:" << (int)oper.role << "name:" << name;
|
||||
continue;
|
||||
}
|
||||
|
||||
box.id = oper_data ? oper_data->id : "";
|
||||
box.name = name;
|
||||
box.rarity = oper_data ? oper_data->rarity : 0;
|
||||
|
||||
Reference in New Issue
Block a user