diff --git a/src/ObjCommon/Obj/Gdt/GdtStream.cpp b/src/ObjCommon/Obj/Gdt/GdtStream.cpp index 871c1596..a5944726 100644 --- a/src/ObjCommon/Obj/Gdt/GdtStream.cpp +++ b/src/ObjCommon/Obj/Gdt/GdtStream.cpp @@ -231,6 +231,10 @@ bool GdtReader::Read(Gdt& gdt) PrintError("Could not find parent with name"); return false; } + auto* currentParentEntry = entry.m_parent; + while (currentParentEntry->m_parent) + currentParentEntry = currentParentEntry->m_parent; + entry.m_gdf_name = currentParentEntry->m_gdf_name; } else {