From a41950e97648acd5d25d3816171876187acedf0c Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 23 Dec 2025 15:13:49 +0100 Subject: [PATCH] oh ok --- src/fm95.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fm95.c b/src/fm95.c index b04c2ff..c37616f 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -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) {