Skip to content

Commit 20aa78c

Browse files
committedMay 18, 2015
Fix null dereference when loading schematic from definition without a NodeDefManager
1 parent 46684be commit 20aa78c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎src/script/lua_api/l_mapgen.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ Schematic *load_schematic_from_def(lua_State *L, int index,
215215
}
216216
}
217217

218-
ndef->pendNodeResolve(schem);
218+
if (ndef)
219+
ndef->pendNodeResolve(schem);
219220

220221
return schem;
221222
}

0 commit comments

Comments
 (0)
Please sign in to comment.