Decompile fn_05373 (CPetEvolutionMgr::InsertRecipe)
Batch #12942 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_05373 CPetEvolutionMgr::InsertRecipe: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, codeplay, StrawberrysherbetIX 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
4e7e84b64c
commit
bb121abf12
1 changed files with 3 additions and 3 deletions
|
|
@ -141,12 +141,12 @@ std::pair<bool, std::string> CPetEvolutionMgr::InsertRecipe(int petEgg, int targ
|
|||
if (it->target == target) {
|
||||
for (auto entry = it->materials.begin(); entry != it->materials.end(); ++entry) {
|
||||
if (entry->first == material) {
|
||||
return std::pair<bool, std::string>(false, "duplicate material ITID");
|
||||
return std::make_pair(false, "duplicate material ITID");
|
||||
}
|
||||
}
|
||||
|
||||
it->materials.push_back(std::make_pair(material, count));
|
||||
return std::pair<bool, std::string>(true, "good");
|
||||
return std::make_pair(true, "good");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ std::pair<bool, std::string> CPetEvolutionMgr::InsertRecipe(int petEgg, int targ
|
|||
recipe.target = target;
|
||||
recipe.materials.push_back(std::make_pair(material, count));
|
||||
recipes.push_back(std::move(recipe));
|
||||
return std::pair<bool, std::string>(true, "good");
|
||||
return std::make_pair(true, "good");
|
||||
}
|
||||
|
||||
// OFFSET: 0x006737C0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue