fix: 修复自动战斗OCR错误仍保存头像的问题

This commit is contained in:
MistEO
2022-12-30 22:37:10 +08:00
parent e3f3c63997
commit 4a6413608b

View File

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