From 1321ea88900f321d7fa8679b9a68bf01d6d22e87 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 16:05:06 +0000 Subject: [PATCH] Decompile fn_23483 (CSession::GetShopType) Batch #12496 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_23483 CSession::GetShopType: logic confirmed by peer review Peer-reviewed-by: Yommy, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Client/Session.cpp b/Source/Client/Session.cpp index 7c40515f..626c2a4c 100644 --- a/Source/Client/Session.cpp +++ b/Source/Client/Session.cpp @@ -2614,8 +2614,8 @@ const char* CSession::GetMonsterW3dName(int job) const { // OFFSET: 0x00DE38E0 // FUNCTION: fn_23483 unsigned char CSession::GetShopType(int id) { - auto it = this->m_shops.find(id); - if (it == this->m_shops.end()) { + auto it = this->m_shops.lower_bound(id); + if (it == this->m_shops.end() || it->first != id) { return 0; }