diff --git a/Source/Contents/Achievement/AchievementMgr.cpp b/Source/Contents/Achievement/AchievementMgr.cpp index 4ef06a04b..bccf6e598 100644 --- a/Source/Contents/Achievement/AchievementMgr.cpp +++ b/Source/Contents/Achievement/AchievementMgr.cpp @@ -322,14 +322,14 @@ std::pair CAchievementMgr::InsertAchieveRewardTitle(int id, i // FUNCTION: fn_05328 std::pair CAchievementMgr::InsertAchieveUIType(int id, int type, std::string text) { const auto found = this->achievements.find(id); - if (found == this->achievements.end()) { + if (found != this->achievements.end()) { + found->second.progressMode = type; + found->second.iconName = text; + return std::make_pair(true, "good"); + } else { const std::string message = FormatOwnedString("achievement info [%d] cannot be find", id); return std::make_pair(false, message); } - - found->second.progressMode = type; - found->second.iconName = text; - return std::make_pair(true, "good"); } // OFFSET: 0x0066F900