1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-08-13 16:53:49 -04:00

Fix erroneous lua_pop parameter

This commit is contained in:
kwolekr 2014-10-30 16:23:48 -04:00
parent f0ae2da89e
commit db25f75337

View File

@ -475,9 +475,11 @@ bool ModApiMapgen::regDecoSchematic(lua_State *L,
lua_pop(L, 1);
lua_getfield(L, index, "schematic");
if (!read_schematic(L, -1, deco, getServer(L)))
if (!read_schematic(L, -1, deco, getServer(L))) {
lua_pop(L, 1);
return false;
lua_pop(L, -1);
}
lua_pop(L, 1);
if (!deco->filename.empty() &&
!deco->loadSchematicFile(resolver, replace_names)) {