From 01eb534606fb65efdf65f03c49053dc2fd3ed78d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:32:55 +0000 Subject: [PATCH] Decompile fn_17979 (CItemInfoMgr::GetEffectId) Batch #12760 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_17979 CItemInfoMgr::GetEffectId: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Items/ItemInfoMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Items/ItemInfoMgr.cpp b/Source/Contents/Items/ItemInfoMgr.cpp index 4d5a58aa..0bc2767d 100644 --- a/Source/Contents/Items/ItemInfoMgr.cpp +++ b/Source/Contents/Items/ItemInfoMgr.cpp @@ -53,10 +53,10 @@ int CItemInfoMgr::IsCostume(int id) { // FUNCTION: fn_17979 int CItemInfoMgr::GetEffectId(int id) { std::map::iterator it = this->m_items.find(id); - if (it == this->m_items.end()) { - return -1; + if (it != this->m_items.end()) { + return it->second.effectId; } - return it->second.effectId; + return -1; } // OFFSET: 0x00ADFF30