Fixed loading child nodes

Fixed a bug that was preventing child nodes from being loaded.
This commit is contained in:
Darryl Gough 2016-03-08 00:19:40 -05:00
parent 7c87797176
commit bc9f2b2544

View File

@ -1013,7 +1013,6 @@ bool ParseNode(Node &node, std::string &err, const picojson::object &o) {
const picojson::array &childrenArray =
(childrenObject->second).get<picojson::array>();
for (size_t i = 0; i < childrenArray.size(); i++) {
Node node;
if (!childrenArray[i].is<std::string>()) {
err += "Invalid `children` array.\n";
return false;