node: correctly skip element if node param isn't found

Fixes issue where projects could fail to load entirely if a node param was not found.
This commit is contained in:
itsmattkc
2020-11-22 22:30:13 +11:00
parent 3cf4d58716
commit 96ad22d3e6
+1
View File
@@ -93,6 +93,7 @@ void Node::Load(QXmlStreamReader *reader, XMLNodeData& xml_node_data, const QAto
if (!param) {
qDebug() << "No parameter in" << id() << "with parameter" << param_id;
reader->skipCurrentElement();
continue;
}