Skip to content

Commit

Permalink
Fix unions generating with 2x {
Browse files Browse the repository at this point in the history
  • Loading branch information
RA-Kooi committed Dec 24, 2021
1 parent d031ad8 commit 11ba35e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions DwarfOne2C/CWriter/Union.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ private static List<string> GenerateUnion(

if(current.firstChild == -1)
{
code.Add(tabs + "{");
code.Add(tabs + "};");
code.Add("");

return code;
}

code.Add(tabs + "{");

for(Tag child = allTags[IDToIndex[current.firstChild]];
child.sibling != Tag.NoSibling;
child = allTags[IDToIndex[child.sibling]])
Expand Down

0 comments on commit 11ba35e

Please sign in to comment.