From 933ca4f5acbe080a57949f144ba93ae8d05ac517 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 22:24:18 +0000 Subject: [PATCH] Decompile fn_12758 (UISelCharForUServerWnd::SendMsg) Batch #15378 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12758 UISelCharForUServerWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: eAthena, gordaoprogramas, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UISelCharForUServerWnd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/UI/Window/UISelCharForUServerWnd.cpp b/Source/UI/Window/UISelCharForUServerWnd.cpp index 77887d6c8..8620c0db9 100644 --- a/Source/UI/Window/UISelCharForUServerWnd.cpp +++ b/Source/UI/Window/UISelCharForUServerWnd.cpp @@ -163,9 +163,7 @@ int UISelCharForUServerWnd::SendMsg(UIWindow* sender, int message, std::intptr_t packet.id = 0x28C; packet.accountId = g_session.m_aid; packet.count = count; - for (int index = 0; index < 9; ++index) { - packet.characterIds[index] = characterIds[index]; - } + std::memcpy(packet.characterIds, characterIds, sizeof(packet.characterIds)); GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(packet.id), &packet); g_windowMgr.Schedule(this); return 0;