From 7d729b68b0a72b5507770529bd51bd35f411d3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Kooi?= <48814281+RA-Kooi@users.noreply.github.com> Date: Sat, 1 Jan 2022 23:20:33 +0100 Subject: [PATCH] Fix type stripping introduced by 405cc286 --- DwarfOne2C/CWriter/Types.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DwarfOne2C/CWriter/Types.cs b/DwarfOne2C/CWriter/Types.cs index 1ce9ab6..bb336a3 100644 --- a/DwarfOne2C/CWriter/Types.cs +++ b/DwarfOne2C/CWriter/Types.cs @@ -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 @@ -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) + "("; }