Fix null dereference when loading schematic from definition without a NodeDefManager

This commit is contained in:
kwolekr 2015-05-17 22:32:35 -04:00
parent 46684beec1
commit 20aa78cffb

@ -215,7 +215,8 @@ Schematic *load_schematic_from_def(lua_State *L, int index,
}
}
ndef->pendNodeResolve(schem);
if (ndef)
ndef->pendNodeResolve(schem);
return schem;
}