From f7dbe88169856a5e767031553e12c35362115d94 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 24 Jan 2024 06:16:42 -0500 Subject: [PATCH] Fixed mBaseClassCommas printing --- IDEHelper/Compiler/BfPrinter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfPrinter.cpp b/IDEHelper/Compiler/BfPrinter.cpp index 7648ccfe..59087558 100644 --- a/IDEHelper/Compiler/BfPrinter.cpp +++ b/IDEHelper/Compiler/BfPrinter.cpp @@ -3035,10 +3035,11 @@ void BfPrinter::Visit(BfTypeDeclaration* typeDeclaration) ExpectSpace(); QueueVisitChild(typeDeclaration->mBaseClasses[i]); if (nextCommaIdx >= 0) - { QueueVisitChild(typeDeclaration->mBaseClassCommas.GetSafe(nextCommaIdx)); - } + nextCommaIdx++; } + if (nextCommaIdx >= 0) + QueueVisitChild(typeDeclaration->mBaseClassCommas.GetSafe(nextCommaIdx)); ExpectSpace(); } QueueVisitChild(typeDeclaration->mGenericConstraintsDeclaration);