Fix null dereference when loading schematic from definition without a NodeDefManager
This commit is contained in:
parent
19c0d3ac23
commit
522d9c8d73
|
@ -215,7 +215,8 @@ Schematic *load_schematic_from_def(lua_State *L, int index,
|
|||
}
|
||||
}
|
||||
|
||||
ndef->pendNodeResolve(schem);
|
||||
if (ndef)
|
||||
ndef->pendNodeResolve(schem);
|
||||
|
||||
return schem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue