mirror of https://github.com/bjornbytes/lovr.git
Fix stack adjustment in pushtype;
This commit is contained in:
parent
e5aefb3f03
commit
2cc360db11
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue