Skip to content

Commit

Permalink
Fix CompilationUnit's sibling being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
RA-Kooi committed Sep 13, 2022
1 parent ff151ba commit 4fb14b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DwarfOne2C/Parsing/DumpParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fb14b7

Please sign in to comment.