Maintenance: Replace *reinterpret_cast<LuaScript* const*>(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).
This commit is contained in:
parent
9a3daa2e22
commit
89148ae7ca
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ int UIListBoxAgitMenu::SendMsg(UIWindow* sender, int message, std::intptr_t a, s
|
|||
GuildInfo* guildInfo = reinterpret_cast<GuildInfo*>(reinterpret_cast<char*>(&g_guildId) - offsetof(GuildInfo, m_guildId));
|
||||
uint16_t agitId = static_cast<uint16_t>(guildInfo->GetUnknown0114(this->m_agitIndex));
|
||||
|
||||
LuaScript* luaScript = *reinterpret_cast<LuaScript* const*>(0x01738010);
|
||||
LuaScript* luaScript = g_luaScript;
|
||||
char* agitName = nullptr;
|
||||
luaScript->Call("get_agit_name", "d>s", agitId, &agitName);
|
||||
if (agitName != nullptr && strnlen(agitName, 256) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue