Skip to content

Commit

Permalink
Fix type stripping introduced by 405cc28
Browse files Browse the repository at this point in the history
  • Loading branch information
RA-Kooi committed Jan 1, 2022
1 parent b171b86 commit 7d729b6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DwarfOne2C/CWriter/Types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ private static (string part1, string part2) GetArray(

if(current.typeID > 0)
{
Tag referenced = allTags[IDToIndex[current.typeID]];
(type, part2) = GetType(allTags, IDToIndex, referenced);
(type, part2) = GetType(allTags, IDToIndex, current);
type += GetModifiers(allTags, IDToIndex, current);
}
else
Expand Down Expand Up @@ -129,8 +128,7 @@ private static (string part1, string part2) GetFunctionPointer(
}
else
{
Tag referenced = allTags[IDToIndex[current.typeID]];
(part1, part2) = GetType(allTags, IDToIndex, referenced);
(part1, part2) = GetType(allTags, IDToIndex, current);
part1 += GetModifiers(allTags, IDToIndex, current) + "(";
}

Expand Down

0 comments on commit 7d729b6

Please sign in to comment.