This commit is contained in:
2025-12-23 15:13:49 +01:00
parent 79944ff2c8
commit a41950e976
+1 -1
View File
@@ -192,7 +192,7 @@ int run_fm95(const FM95_Config config, FM95_Runtime* runtime) {
// Load the file
if (luaL_loadfile(runtime->lua, "/home/user/test.lua") == LUA_OK) {
// luaL_ref pops the function from the stack and returns a unique integer ID
script_ref = luaL_ref(L, LUA_REGISTRYINDEX);
script_ref = luaL_ref(runtime->lua, LUA_REGISTRYINDEX);
}
while (to_run) {