mirror of https://github.com/libAthena/athena.git
Ensure `name` field set before parsing mapping node
This commit is contained in:
parent
b3ca9a0a90
commit
a5a3244e1a
|
@ -701,7 +701,7 @@ public:
|
||||||
int& seqIdx = m_seqTrackerStack.back();
|
int& seqIdx = m_seqTrackerStack.back();
|
||||||
return NodeToVal<RETURNTYPE>(mnode->m_seqChildren[seqIdx++].get());
|
return NodeToVal<RETURNTYPE>(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)
|
for (const auto& item : mnode->m_mapChildren)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue