mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix null dereference when loading schematic from definition without a NodeDefManager
This commit is contained in:
parent
46684beec1
commit
20aa78cffb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue