Skip to content

Commit

Permalink
LuaFAR: correction
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Nov 7, 2024
1 parent ab0d5d5 commit 8ae51ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luafar/src/exported.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,13 +1405,13 @@ int LF_ProcessSynchroEvent (lua_State* L, int Event, void *Param)
else if (sd.type == SYNCHRO_FUNCTION) {
lua_rawgeti(L, LUA_REGISTRYINDEX, sd.ref);
luaL_unref(L, LUA_REGISTRYINDEX, sd.ref);
if (lua_istable(L,-1) && lua_checkstack(L, 1 + sd.narg)) {
if (lua_istable(L,-1) && lua_checkstack(L, sd.narg)) {
for (int i=1; i <= sd.narg; i++) {
lua_rawgeti(L, -i, i);
}
pcall_msg(L, sd.narg - 1, 0);
lua_pop(L, 1);
}
lua_pop(L, 1);
}
}
return 0;
Expand Down

0 comments on commit 8ae51ea

Please sign in to comment.