fix(ui): push correct arg value to stack in FrameScript_Execute

This commit is contained in:
fallenoak 2025-12-07 23:52:32 -06:00
parent 19f8ac0811
commit 1a25ac6a8e
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -263,7 +263,7 @@ void FrameScript_Execute(int32_t function, FrameScript_Object* objectThis, int32
lua_pushstring(L, argName);
lua_rawget(L, LUA_GLOBALSINDEX);
lua_pushvalue(L, v20 + firstArg);
lua_pushvalue(L, v20 + i);
lua_pushstring(L, argName);
lua_insert(L, -2);
lua_rawset(L, LUA_GLOBALSINDEX);