diff --git a/include/athena/DNAYaml.hpp b/include/athena/DNAYaml.hpp index a8b5360..5e3ffb0 100644 --- a/include/athena/DNAYaml.hpp +++ b/include/athena/DNAYaml.hpp @@ -701,7 +701,7 @@ public: int& seqIdx = m_seqTrackerStack.back(); return NodeToVal(mnode->m_seqChildren[seqIdx++].get()); } - else if (mnode->m_type == YAML_MAPPING_NODE) + else if (mnode->m_type == YAML_MAPPING_NODE && name) { for (const auto& item : mnode->m_mapChildren) {