From 89148ae7cae3d340ef0b3c7e1707f07adc507beb Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 22:12:01 +0000 Subject: [PATCH] Maintenance: Replace *reinterpret_cast(0x01738010) with g_luaScript (gl_24791 at 0x01738010, Script/LuaScript.h). Batch #8875 by ragnarok-clanker: forced by an admin (1 lower score(s), 1 changed function(s)); checked with 1 compiled unit(s). --- Source/UI/Guild/UIAgitWnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/UI/Guild/UIAgitWnd.cpp b/Source/UI/Guild/UIAgitWnd.cpp index 196ab27a..5df55205 100644 --- a/Source/UI/Guild/UIAgitWnd.cpp +++ b/Source/UI/Guild/UIAgitWnd.cpp @@ -157,7 +157,7 @@ int UIListBoxAgitMenu::SendMsg(UIWindow* sender, int message, std::intptr_t a, s GuildInfo* guildInfo = reinterpret_cast(reinterpret_cast(&g_guildId) - offsetof(GuildInfo, m_guildId)); uint16_t agitId = static_cast(guildInfo->GetUnknown0114(this->m_agitIndex)); - LuaScript* luaScript = *reinterpret_cast(0x01738010); + LuaScript* luaScript = g_luaScript; char* agitName = nullptr; luaScript->Call("get_agit_name", "d>s", agitId, &agitName); if (agitName != nullptr && strnlen(agitName, 256) != 0) {