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:
46684be
)
Fix null dereference when loading schematic from definition without a NodeDefManager
author
kwolekr
<kwolekr@minetest.net>
Mon, 18 May 2015 02:32:35 +0000
(22:32 -0400)
committer
kwolekr
<kwolekr@minetest.net>
Mon, 18 May 2015 02:32:35 +0000
(22:32 -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 dc3644e1cbe51de2d190ba0670e34193f63d4e03..76e94e97e7bbe56e781acd9a4440eda7f56748db 100644
(file)
--- a/
src/script/lua_api/l_mapgen.cpp
+++ b/
src/script/lua_api/l_mapgen.cpp
@@
-215,7
+215,8
@@
Schematic *load_schematic_from_def(lua_State *L, int index,
}
}
- ndef->pendNodeResolve(schem);
+ if (ndef)
+ ndef->pendNodeResolve(schem);
return schem;
}