Skip to content
Permalink
Browse files

Fix null dereference when loading schematic from definition without a…

… NodeDefManager
  • Loading branch information
kwolekr committed May 18, 2015
1 parent 46684be commit 20aa78cffb6594ff8fdea4291f18d1a8bd252529
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;
}

0 comments on commit 20aa78c

Please sign in to comment.
You can’t perform that action at this time.