Fix null dereference when loading schematic from definition without a NodeDefManager

master
kwolekr 2015-05-17 22:32:35 -04:00
parent 46684beec1
commit 20aa78cffb
1 changed files with 2 additions and 1 deletions

View File

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