fix: 干员仓储识别未跳过数据查找失败的干员

This commit is contained in:
status102
2026-04-25 23:16:29 +08:00
parent 7567ca7950
commit adcf581ab3

View File

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