mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: 修复自动战斗OCR错误仍保存头像的问题
This commit is contained in:
@@ -95,6 +95,11 @@ void asst::BattleHelper::save_avatar_cache(const std::string& name, const cv::Ma
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
if (BattleData.get_rarity(name) == 0) {
|
||||
Log.error("wrong oper name", name);
|
||||
return;
|
||||
}
|
||||
|
||||
auto path = avatar_cache_dir() / utils::path(name + CacheExtension);
|
||||
Log.info(path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user