0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00
This commit is contained in:
2025-12-24 19:42:15 +01:00
parent 83aa5deaa2
commit 67ff268700

View File

@@ -595,15 +595,15 @@ void lua_group(RDSGroup* group) {
if (lua_pcall(L, 3, 3, 0) == LUA_OK) { if (lua_pcall(L, 3, 3, 0) == LUA_OK) {
if (!lua_isinteger(localL, -1)) { if (!lua_isinteger(localL, -1)) {
pthread_mutex_unlock(&lua_mutex); pthread_mutex_unlock(&lua_mutex);
return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -1)); return;
} }
if (!lua_isinteger(localL, -2)) { if (!lua_isinteger(localL, -2)) {
pthread_mutex_unlock(&lua_mutex); pthread_mutex_unlock(&lua_mutex);
return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -2)); return;
} }
if (!lua_isinteger(localL, -3)) { if (!lua_isinteger(localL, -3)) {
pthread_mutex_unlock(&lua_mutex); pthread_mutex_unlock(&lua_mutex);
return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -3)); return;
} }
group->d = luaL_checkinteger(L, -1); group->d = luaL_checkinteger(L, -1);
group->c = luaL_checkinteger(L, -2); group->c = luaL_checkinteger(L, -2);
@@ -630,15 +630,15 @@ void lua_group_ref(RDSGroup* group, int ref) {
if (lua_pcall(L, 3, 3, 0) == LUA_OK) { if (lua_pcall(L, 3, 3, 0) == LUA_OK) {
if (!lua_isinteger(localL, -1)) { if (!lua_isinteger(localL, -1)) {
pthread_mutex_unlock(&lua_mutex); pthread_mutex_unlock(&lua_mutex);
return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -1)); return;
} }
if (!lua_isinteger(localL, -2)) { if (!lua_isinteger(localL, -2)) {
pthread_mutex_unlock(&lua_mutex); pthread_mutex_unlock(&lua_mutex);
return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -2)); return;
} }
if (!lua_isinteger(localL, -3)) { if (!lua_isinteger(localL, -3)) {
pthread_mutex_unlock(&lua_mutex); pthread_mutex_unlock(&lua_mutex);
return luaL_error(localL, "integer expected, got %s", luaL_typename(localL, -3)); return;
} }
group->d = luaL_checkinteger(L, -1); group->d = luaL_checkinteger(L, -1);
group->c = luaL_checkinteger(L, -2); group->c = luaL_checkinteger(L, -2);