diff options
-rw-r--r-- | src/scripting/ffi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripting/ffi.c b/src/scripting/ffi.c index 6a30a94..35ba6f2 100644 --- a/src/scripting/ffi.c +++ b/src/scripting/ffi.c @@ -149,6 +149,8 @@ ffi_handle_function(lua_State *l) { struct ffi_function *fn; + call_arg_index = 0; + fn = (struct ffi_function *) lua_touserdata(l, lua_upvalueindex(1)); fn->func(fn); |