From 40a184301b59859f1f757a7e6c1c08139274a7e7 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Mon, 22 Dec 2025 19:14:50 +0100 Subject: [PATCH] fixes --- src/lua_rds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lua_rds.c b/src/lua_rds.c index ec89c59..d305714 100644 --- a/src/lua_rds.c +++ b/src/lua_rds.c @@ -238,7 +238,7 @@ void init_lua(RDSModulator* rds_mod) { lua_pushstring(L, VERSION); lua_setglobal(L, "core_version"); - lua_pushinteger(L, PROGRAMS) + lua_pushinteger(L, PROGRAMS); lua_setglobal(L, "max_programs"); lua_register(L, "set_rds_program_defaults", lua_set_rds_program_defaults); @@ -359,8 +359,8 @@ void lua_on_init() { return; } - lua_pushnil(); - lua_setglobal(L, "data") + lua_pushnil(L); + lua_setglobal(L, "data"); if (lua_pcall(L, 0, 0, 0) != LUA_OK) { const char *err = lua_tostring(L, -1);