Maintenance: [forced, user-approved] Family V1: remove the invented global g_luaScript and the session-as-script casts. 0x1738010 is

Batch #10269 by ragnarok-clanker: forced by an admin (2 lower score(s), 6 changed function(s)); checked with 102 compiled unit(s), including every includer of Source/Script/LuaScript.h.
This commit is contained in:
ragnarok-clanker 2026-11-03 14:40:29 +00:00
commit 2d55a137fc
44 changed files with 177 additions and 175 deletions

View file

@ -22,7 +22,7 @@ UIWindow* UIWindowMgr::CreateLayoutWindow(int id) {
int height = 0;
int x = 0;
int y = 0;
if (!g_luaScript->Call("GetWindowInfo", "d>dddd", id, &width, &height, &x, &y)) {
if (!g_session.m_hotkeyScript->Call("GetWindowInfo", "d>dddd", id, &width, &height, &x, &y)) {
return nullptr;
}