Decompile fn_05328 (CAchievementMgr::InsertAchieveUIType)
Batch #17335 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_05328 CAchievementMgr::InsertAchieveUIType: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
16a8df3a2e
commit
00df083ed6
1 changed files with 5 additions and 5 deletions
|
|
@ -322,14 +322,14 @@ std::pair<bool, std::string> CAchievementMgr::InsertAchieveRewardTitle(int id, i
|
|||
// FUNCTION: fn_05328
|
||||
std::pair<bool, std::string> 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue