Fix stack adjustment in pushtype;

This commit is contained in:
bjorn 2017-02-26 14:49:42 -08:00
parent e5aefb3f03
commit 2cc360db11
1 changed files with 2 additions and 1 deletions

View File

@ -83,9 +83,10 @@ int luax_getobject(lua_State* L, void* object) {
lua_gettable(L, -2);
if (lua_isnil(L, -1)) {
lua_pop(L, 1);
lua_pop(L, 2);
return 0;
} else {
lua_remove(L, -2);
return 1;
}
}