Skip to content

Commit

Permalink
Fix load_cache() function to handle failure case
Browse files Browse the repository at this point in the history
  • Loading branch information
GengGode committed Feb 8, 2024
1 parent 61de5b3 commit 1a2c00f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/genshin/match/position/genshin.match.position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ void TianLi::Genshin::Match::get_avatar_position(const tianli::global::GenshinMi
std::vector<cv::KeyPoint> gi_map_keypoints;
cv::Mat gi_map_descriptors;
std::shared_ptr<trackCache::CacheInfo> cache_info;
load_cache(cache_info);
if (load_cache(cache_info) == false)
return;
surf_match.Init(cache_info);

is_init = true;
Expand Down

0 comments on commit 1a2c00f

Please sign in to comment.