mirror of
https://github.com/minetest/minetest.git
synced 2025-04-03 08:52:43 +02:00
Fix null dereference when loading schematic from definition without a NodeDefManager
This commit is contained in:
@ -215,7 +215,8 @@ Schematic *load_schematic_from_def(lua_State *L, int index,
|
||||
}
|
||||
}
|
||||
|
||||
ndef->pendNodeResolve(schem);
|
||||
if (ndef)
|
||||
ndef->pendNodeResolve(schem);
|
||||
|
||||
return schem;
|
||||
}
|
||||
|
Reference in New Issue
Block a user