diff --git a/src/lua_rds.c b/src/lua_rds.c index 85052b5..99dd2de 100644 --- a/src/lua_rds.c +++ b/src/lua_rds.c @@ -109,7 +109,7 @@ uint8_t init_lua(RDSEncoder* _enc) { lua_setfield(globalL, -2, "ps_transmission"); lua_pushvalue(globalL, -1); hooks_ref = luaL_ref(globalL, LUA_REGISTRYINDEX); - lua_getglobal(globalL, "hooks"); + lua_setglobal(globalL, "hooks"); lua_newtable(globalL); lua_setglobal(globalL, "ext");