mirror of https://github.com/bjornbytes/lovr.git
Fix luaopen_lovr_filesystem stack index;
This commit is contained in:
parent
f82e8112fe
commit
d1a2ded4db
|
@ -487,7 +487,7 @@ int luaopen_lovr_filesystem(lua_State* L) {
|
||||||
|
|
||||||
lua_getglobal(L, "arg");
|
lua_getglobal(L, "arg");
|
||||||
if (lua_istable(L, -1)) {
|
if (lua_istable(L, -1)) {
|
||||||
lua_rawgeti(L, -2, 0);
|
lua_rawgeti(L, -1, 0);
|
||||||
archive = lua_tostring(L, -1);
|
archive = lua_tostring(L, -1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue