Decompile fn_08143 (CRuneSystemMgr::GetDecomList)
Batch #16200 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_08143 CRuneSystemMgr::GetDecomList: logic confirmed by peer review Peer-reviewed-by: youko, kyoshi 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
e9836da202
commit
72a0d0b109
1 changed files with 2 additions and 2 deletions
|
|
@ -437,14 +437,14 @@ int RuneSetData::GetGradeValue() const {
|
|||
// FUNCTION: fn_08143
|
||||
std::vector<Decom_ItemInfo>* CRuneSystemMgr::GetDecomList(int itemId, int which) {
|
||||
const auto decom = this->m_itemDecoms.find(itemId);
|
||||
const std::pair<int, int>* types = decom != this->m_itemDecoms.end() ? &decom->second : nullptr;
|
||||
const std::pair<int, int>* types = this->m_itemDecoms.end() == decom ? nullptr : &decom->second;
|
||||
if (!types) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const int typeId = which == 0 ? types->first : types->second;
|
||||
const auto found = this->m_decomTypes.find(typeId);
|
||||
return found != this->m_decomTypes.end() ? &found->second : nullptr;
|
||||
return this->m_decomTypes.end() == found ? nullptr : &found->second;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00767230
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue