Skip to content
Permalink
Browse files
Fix null dereference when loading schematic from definition without a…
… NodeDefManager
  • Loading branch information
kwolekr committed May 18, 2015
1 parent 46684be commit 20aa78cffb6594ff8fdea4291f18d1a8bd252529
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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 comments on commit 20aa78c

Please sign in to comment.