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;