Decompile 2 functions in Source/Contents/Items/RuneSystem.cpp

Batch #13034 by cremane: 2 byte-identical, 0 confirmed by peer review.

- fn_08132 CRuneSystemMgr::GetItemListEntry: byte-identical
- fn_08133 CRuneSystemMgr::GetItemListCount: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 04:25:27 +00:00
commit b474415a11

View file

@ -314,7 +314,7 @@ bool RuneData::IsActive() const {
// FUNCTION: fn_08132
const std::pair<int, int>& CRuneSystemMgr::GetItemListEntry(int listId, unsigned int index) {
const auto found = this->m_itemLists.find(listId);
if (found == this->m_itemLists.end() || index >= found->second.size()) {
if (this->m_itemLists.end() == found || index >= found->second.size()) {
return this->m_emptyItem;
}
@ -325,7 +325,7 @@ const std::pair<int, int>& CRuneSystemMgr::GetItemListEntry(int listId, unsigned
// FUNCTION: fn_08133
int CRuneSystemMgr::GetItemListCount(int listId) {
const auto found = this->m_itemLists.find(listId);
if (found != this->m_itemLists.end()) {
if (this->m_itemLists.end() != found) {
return static_cast<int>(found->second.size());
}