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).
This commit is contained in:
parent
202db68306
commit
be84cacf34
1 changed files with 2 additions and 14 deletions
|
|
@ -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<int, ITEM_DESC>& values) {
|
||||
// GLOBAL: gl_24674
|
||||
static ITEM_DESC missing;
|
||||
const auto entry = values.find(id);
|
||||
return entry == values.end() ? missing : entry->second;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue