1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00

Fix luaopen_lovr_filesystem stack index;

This commit is contained in:
bjorn 2021-02-25 16:29:52 -07:00
parent f82e8112fe
commit d1a2ded4db

View file

@ -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);
} }