From cd2daf4a4497eb720715ab06567290ef662f167c Mon Sep 17 00:00:00 2001 From: dadi Date: Fri, 5 May 2017 21:42:03 +0800 Subject: [PATCH] Fix class_table_get_index --- lua/tolua/tolua_event.c | 1 + 1 file changed, 1 insertion(+) 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;