From f0eaeea677463d9779eea00141a396887cc0f09c Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 04:14:57 +0000 Subject: [PATCH] Decompile fn_22190 (CGameMode::ShowSpecialPopup) Batch #17829 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_22190 CGameMode::ShowSpecialPopup: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModePackets.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 1f00f5a0f..281a152bf 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -3794,8 +3794,8 @@ void CGameMode::ShowSpecialPopup(int popupId) { std::string text; switch (popup->m_messageId) { case 0: - for (const std::string& description : popup->m_descriptions) { - text = RemoveTextColors(description.c_str()); + for (auto description = popup->m_descriptions.begin(); description != popup->m_descriptions.end(); ++description) { + text = RemoveTextColors(description->c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), popup->m_color, 0, 0, 0); } break; @@ -3805,8 +3805,8 @@ void CGameMode::ShowSpecialPopup(int popupId) { } [[fallthrough]]; case 2: - for (const std::string& description : popup->m_descriptions) { - text = RemoveTextColors(description.c_str()); + for (auto description = popup->m_descriptions.begin(); description != popup->m_descriptions.end(); ++description) { + text = RemoveTextColors(description->c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), popup->m_color, 0, 0, 0); } if (UIWindow* popupWindow = g_windowMgr.EnsureWindow(WID_BALLOONOPENBTN)) {