projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ae2da
)
Fix erroneous lua_pop parameter
author
kwolekr
<kwolekr@minetest.net>
Thu, 30 Oct 2014 20:23:48 +0000
(16:23 -0400)
committer
kwolekr
<kwolekr@minetest.net>
Thu, 30 Oct 2014 20:23:48 +0000
(16:23 -0400)
src/script/lua_api/l_mapgen.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_mapgen.cpp
b/src/script/lua_api/l_mapgen.cpp
index 75f5afa88a64b6f17a45318992898ba0fa1b672f..fdbeafb31c69db104242c2846603ecb58883af9b 100644
(file)
--- a/
src/script/lua_api/l_mapgen.cpp
+++ b/
src/script/lua_api/l_mapgen.cpp
@@
-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)) {