mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 20:33:53 +01:00
oh
This commit is contained in:
@@ -624,17 +624,20 @@ void lua_group_ref(RDSGroup* group, int ref) {
|
|||||||
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);
|
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);
|
||||||
|
|
||||||
if (lua_isfunction(L, -1)) {
|
if (lua_isfunction(L, -1)) {
|
||||||
if (lua_pcall(L, 3, 3, 0) == LUA_OK) {
|
if (lua_pcall(L, 0, 3, 0) == LUA_OK) {
|
||||||
if (!lua_isinteger(L, -1)) {
|
if (!lua_isinteger(L, -1)) {
|
||||||
pthread_mutex_unlock(&lua_mutex);
|
pthread_mutex_unlock(&lua_mutex);
|
||||||
|
lua_pop(L, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!lua_isinteger(L, -2)) {
|
if (!lua_isinteger(L, -2)) {
|
||||||
pthread_mutex_unlock(&lua_mutex);
|
pthread_mutex_unlock(&lua_mutex);
|
||||||
|
lua_pop(L, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!lua_isinteger(L, -3)) {
|
if (!lua_isinteger(L, -3)) {
|
||||||
pthread_mutex_unlock(&lua_mutex);
|
pthread_mutex_unlock(&lua_mutex);
|
||||||
|
lua_pop(L, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
group->d = luaL_checkinteger(L, -1);
|
group->d = luaL_checkinteger(L, -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user