From 65d4ccb77b2281aa1c4510ada2951034500a7490 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 03:19:43 +0000 Subject: [PATCH] Decompile fn_18352 (SetSubChatWndList) Batch #17764 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_18352 SetSubChatWndList: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Script/LuaScript.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Script/LuaScript.cpp b/Source/Script/LuaScript.cpp index 82c4fada8..31922512a 100644 --- a/Source/Script/LuaScript.cpp +++ b/Source/Script/LuaScript.cpp @@ -39,6 +39,8 @@ extern "C" { #include #include +template __declspec(noinline) SubChatWndInfo& std::map::operator[](int&&); + struct MiniMapPosition { MiniMapPosition() { } @@ -121,10 +123,10 @@ int SetSubChatWndList(lua_State* state) { int index; if (type == "On") { index = static_cast(g_session.m_noSubChatWnds.size()); - g_session.m_noSubChatWnds[index] = info; + g_session.m_noSubChatWnds[static_cast(g_session.m_noSubChatWnds.size())] = info; } else { index = static_cast(g_session.m_subChatWnds.size()); - g_session.m_subChatWnds[index] = info; + g_session.m_subChatWnds[static_cast(g_session.m_subChatWnds.size())] = info; } lua_pushnumber(state, index);