Skip to content

Commit

Permalink
Fix null dereference when loading schematic from definition without a…
Browse files Browse the repository at this point in the history
… NodeDefManager
  • Loading branch information
kwolekr committed May 18, 2015
1 parent 46684be commit 20aa78c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/script/lua_api/l_mapgen.cpp
Expand Up @@ -215,7 +215,8 @@ Schematic *load_schematic_from_def(lua_State *L, int index,
}
}

ndef->pendNodeResolve(schem);
if (ndef)
ndef->pendNodeResolve(schem);

return schem;
}
Expand Down

0 comments on commit 20aa78c

Please sign in to comment.