diff --git a/DwarfOne2C/Parsing/DumpParser.cs b/DwarfOne2C/Parsing/DumpParser.cs index a0bfa21..3f767e3 100644 --- a/DwarfOne2C/Parsing/DumpParser.cs +++ b/DwarfOne2C/Parsing/DumpParser.cs @@ -116,7 +116,8 @@ void FixChain(Tag parent, ref int i, int depth) if(current.tagType == TagType.End) return; - if(prev.sibling != current.ID) + if(prev.sibling != current.ID + && prev.tagType != TagType.CompileUnit) prev.sibling = current.ID; if(current.firstChild >= 0)