diff options
Diffstat (limited to 'src/honey_lua.c')
-rw-r--r-- | src/honey_lua.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/honey_lua.c b/src/honey_lua.c index 72624be..f3ca0a5 100644 --- a/src/honey_lua.c +++ b/src/honey_lua.c @@ -102,6 +102,8 @@ void honey_lua_throw_error(lua_State* L, static bool check_arg_list(lua_State* L, struct argument_list arg_list) { + if (arg_list.length != lua_gettop(L)) + return false; struct argument_pair* args = arg_list.args; for (int i=0; i<arg_list.length; i++) { if (!check_argument(L, args[i].type, i+1)) |