From 1a25ac6a8e01c9f20df7b1d45c3cdfe2639de237 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 7 Dec 2025 23:52:32 -0600 Subject: [PATCH] fix(ui): push correct arg value to stack in FrameScript_Execute --- src/ui/FrameScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/FrameScript.cpp b/src/ui/FrameScript.cpp index 3debce6..1b8b154 100644 --- a/src/ui/FrameScript.cpp +++ b/src/ui/FrameScript.cpp @@ -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);