Skip to content
Snippets Groups Projects
Commit 20aa78cf authored by kwolekr's avatar kwolekr
Browse files

Fix null dereference when loading schematic from definition without a NodeDefManager

parent 46684bee
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment