From bb121abf12856fd9f847273c3cff512c82afce18 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 10:13:56 +0000 Subject: [PATCH] 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). --- Source/Contents/PetEvolutionMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/PetEvolutionMgr.cpp b/Source/Contents/PetEvolutionMgr.cpp index 404db66f..f9f583cc 100644 --- a/Source/Contents/PetEvolutionMgr.cpp +++ b/Source/Contents/PetEvolutionMgr.cpp @@ -141,12 +141,12 @@ std::pair 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(false, "duplicate material ITID"); + return std::make_pair(false, "duplicate material ITID"); } } it->materials.push_back(std::make_pair(material, count)); - return std::pair(true, "good"); + return std::make_pair(true, "good"); } } @@ -154,7 +154,7 @@ std::pair 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(true, "good"); + return std::make_pair(true, "good"); } // OFFSET: 0x006737C0