Apply gdt parent entry gdf to children

This commit is contained in:
Jan 2021-03-28 12:27:23 +02:00
parent a42f75c85e
commit 41b4fb8c9a

View File

@ -231,6 +231,10 @@ bool GdtReader::Read(Gdt& gdt)
PrintError("Could not find parent with name"); PrintError("Could not find parent with name");
return false; return false;
} }
auto* currentParentEntry = entry.m_parent;
while (currentParentEntry->m_parent)
currentParentEntry = currentParentEntry->m_parent;
entry.m_gdf_name = currentParentEntry->m_gdf_name;
} }
else else
{ {