diff --git a/lua/tolua/tolua_event.c b/lua/tolua/tolua_event.c index 15adbc04b3..fb231c7a0c 100644 --- a/lua/tolua/tolua_event.c +++ b/lua/tolua/tolua_event.c @@ -159,6 +159,7 @@ static int class_table_get_index (lua_State* L) } lua_pop(L, 2); } + lua_settop(L,3); } lua_pushnil(L); return 1;