diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..1f74ea418f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +#for macos +.DS_Store diff --git a/lua/tolua/tolua_event.c b/lua/tolua/tolua_event.c index 15adbc04b3..8af7c28452 100644 --- a/lua/tolua/tolua_event.c +++ b/lua/tolua/tolua_event.c @@ -158,6 +158,8 @@ static int class_table_get_index (lua_State* L) return 1; } lua_pop(L, 2); + } else { + lua_pop(L, 1); } } lua_pushnil(L);