Script API: Fix invalid rotation of L-system trees

The MapNode struct fields param1 and param2 were previously
not initialized. This commit now sets them to a sane default.
This commit is contained in:
SmallJoker 2024-03-17 17:32:35 +01:00
parent 234b01a8c2
commit a862e4290c
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,13 @@ namespace treegen {
};
struct TreeDef : public NodeResolver {
TreeDef() :
// Initialize param1 and param2
trunknode(CONTENT_IGNORE),
leavesnode(CONTENT_IGNORE),
leaves2node(CONTENT_IGNORE),
fruitnode(CONTENT_IGNORE)
{}
virtual void resolveNodeNames();
std::string initial_axiom;