From 0741f84fb0e1da3f8a22d8fab674052ed1c5ee40 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 9 Nov 2025 21:59:46 -0600 Subject: [PATCH] fix(ui): correctly initialize argName 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 55ba6d6..5afa30d 100644 --- a/src/ui/FrameScript.cpp +++ b/src/ui/FrameScript.cpp @@ -245,7 +245,7 @@ void FrameScript_Execute(int32_t function, FrameScript_Object* objectThis, int32 lua_rawset(L, LUA_GLOBALSINDEX); } - char argName[7] = { 'a', 'r', 'g', 0, 0, 0 }; + static char argName[] = { 'a', 'r', 'g', '0', 0, 0, 0 }; int32_t firstArg = event != 0; int32_t argId = 0;