From be84cacf345abe37fa7e8a9df22d56fcf52833c5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 16:03:39 +0000 Subject: [PATCH] Decompile fn_06568 (ITEM_DESC::operator=) Batch #16286 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_06568 ITEM_DESC::operator=: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Items/ItemDescription.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Source/Contents/Items/ItemDescription.cpp b/Source/Contents/Items/ItemDescription.cpp index 83dbff7d0..60531a8de 100644 --- a/Source/Contents/Items/ItemDescription.cpp +++ b/Source/Contents/Items/ItemDescription.cpp @@ -29,24 +29,12 @@ ITEM_DESC::~ITEM_DESC() = default; // OFFSET: 0x006D5160 // FUNCTION: fn_06568 -ITEM_DESC& ITEM_DESC::operator=(const ITEM_DESC& other) { - this->identifiedName = other.identifiedName; - this->identifiedResource = other.identifiedResource; - this->identifiedDescription.assign(other.identifiedDescription.begin(), other.identifiedDescription.end()); - this->unidentifiedName = other.unidentifiedName; - this->unidentifiedResource = other.unidentifiedResource; - this->unidentifiedDescription.assign(other.unidentifiedDescription.begin(), other.unidentifiedDescription.end()); - this->descriptionFlags = other.descriptionFlags; - this->slots = other.slots; - this->descriptionValues.assign(other.descriptionValues.begin(), other.descriptionValues.end()); - this->viewId = other.viewId; - - return *this; -} +ITEM_DESC& ITEM_DESC::operator=(const ITEM_DESC& other) = default; // OFFSET: 0x006D3A00 // FUNCTION: fn_06545 ITEM_DESC& FindItemDescription(int id, std::map& values) { + // GLOBAL: gl_24674 static ITEM_DESC missing; const auto entry = values.find(id); return entry == values.end() ? missing : entry->second;