From 632e51fdf1c4d84d69ba96ac4d0dec438a6a52da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Kooi?= <48814281+RA-Kooi@users.noreply.github.com> Date: Fri, 31 Dec 2021 12:54:32 +0100 Subject: [PATCH] Fix functions generating with array subscript If the first local variable is an array and it has no arguments this would happen. --- DwarfOne2C/CWriter/Function.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DwarfOne2C/CWriter/Function.cs b/DwarfOne2C/CWriter/Function.cs index 8bbc9aa..24680f1 100644 --- a/DwarfOne2C/CWriter/Function.cs +++ b/DwarfOne2C/CWriter/Function.cs @@ -69,7 +69,7 @@ private static List GenerateFunction( if(hasParams) line = line.Remove(line.Length - 2, 2); - line += ")" + pPart2; + line += ")" + part2; code.Add(line); code.Add(tabs + "{"); firstLocal = false;