From 5b2d05a28778f9ebd91eda66eb8341f5c211e4d3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 13:07:37 +0000 Subject: [PATCH] Decompile 4 functions in Source/Client/Mode/GameModeNotices.cpp Batch #17057 by eAthena: 0 byte-identical, 4 confirmed by peer review. - fn_21855 CGameMode::ReceiveGuildMemberExpelled: logic confirmed by peer review - fn_21856 CGameMode::ReceiveGuildExpulsion2: logic confirmed by peer review - fn_21860 CGameMode::ReceiveGuildMemberLeft: logic confirmed by peer review - fn_21861 CGameMode::ReceiveGuildLeave2: logic confirmed by peer review Peer-reviewed-by: Yommy, Toshiro, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModeNotices.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/Client/Mode/GameModeNotices.cpp b/Source/Client/Mode/GameModeNotices.cpp index a540c0244..3a2d95536 100644 --- a/Source/Client/Mode/GameModeNotices.cpp +++ b/Source/Client/Mode/GameModeNotices.cpp @@ -7097,7 +7097,8 @@ void CGameMode::ReceiveGuildMemberExpelled(const unsigned char* data) { if (std::string(name) == g_session.DecodePlayerName()) { g_guildInfo.m_guildId = 0; g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BAN_FROM_GUILD)), 0xFF, 4, 0, 0); + const char* text = LookupMessage(MSI_BAN_FROM_GUILD); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 4, 0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); return; } @@ -7191,7 +7192,8 @@ void CGameMode::ReceiveGuildMemberLeft(const unsigned char* data) { if (std::string(name) == g_session.DecodePlayerName()) { guildInfo->Init(); g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LEFT_GUILD)), 0xFF, 4, 0, 0); + const char* text = LookupMessage(MSI_LEFT_GUILD); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 4, 0, 0); this->scene->player->SetGuildInfo(0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); return; @@ -7251,7 +7253,8 @@ void CGameMode::ReceiveGuildExpulsion2(const unsigned char* data) { ClearGuildShortcutSkills(); g_guildInfo.m_guildId = 0; g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_BAN_FROM_GUILD)), 0xFF, 4, 0, 0); + const char* text = LookupMessage(MSI_BAN_FROM_GUILD); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 4, 0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); if (this->scene != nullptr && this->scene->player != nullptr) { this->scene->player->SetGdid(0); @@ -7299,7 +7302,8 @@ void CGameMode::ReceiveGuildLeave2(const unsigned char* data) { ClearGuildShortcutSkills(); guildInfo->Init(); g_windowMgr.CloseWindow(WID_GUILDWND); - g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(LookupMessage(MSI_LEFT_GUILD)), 0xFF, 4, 0, 0); + const char* text = LookupMessage(MSI_LEFT_GUILD); + g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text), 0xFF, 4, 0, 0); this->scene->player->SetGuildInfo(0, 0); this->SendMsg(MM_DELETEGUILDPOSALL, 0, 0, 0, 0); return;