From 1dbe3dc23f3140618ee6f672ddf4e15be2f1c588 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 23:58:05 +0000 Subject: [PATCH] Decompile 3 functions in Source/Contents/Items/ItemDescription.cpp Batch #11320 by cremane: 0 byte-identical, 3 confirmed by peer review. - fn_06546 EnsureItemCardName: logic confirmed by peer review - fn_06547 EnsureItemDescriptionLines: logic confirmed by peer review - fn_06576 ITEM_INFO::Description: logic confirmed by peer review Peer-reviewed-by: Yommy, dori, raiken Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Items/ItemDescription.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Items/ItemDescription.cpp b/Source/Contents/Items/ItemDescription.cpp index 099d153c..2f41aa5e 100644 --- a/Source/Contents/Items/ItemDescription.cpp +++ b/Source/Contents/Items/ItemDescription.cpp @@ -62,7 +62,7 @@ ItemCardName& EnsureItemCardName(int id, std::map& values) { return entry->second; } - return values[id]; + return values.insert({id, ItemCardName()}).first->second; } // OFFSET: 0x006D3C10 @@ -73,7 +73,7 @@ std::vector& EnsureItemDescriptionLines(int id, std::mapsecond; } - return values[id]; + return values.insert({id, std::vector()}).first->second; } // OFFSET: 0x006D5890 @@ -99,8 +99,8 @@ void CSession::IconPath(char* output, const char* id, int identified) { // OFFSET: 0x006D5730 // FUNCTION: fn_06576 const std::vector& ITEM_INFO::Description() const { - const ITEM_DESC& value = FindItemDescription(std::atoi(this->itemId.c_str()), g_itemDescriptions); - return this->identified == 1 ? value.identifiedDescription : value.unidentifiedDescription; + return this->identified == 1 ? FindItemDescription(std::atoi(this->itemId.c_str()), g_itemDescriptions).identifiedDescription + : FindItemDescription(std::atoi(this->itemId.c_str()), g_itemDescriptions).unidentifiedDescription; } // OFFSET: 0x006D5810