From f9b45269344e0db123eaa63863655ea0bf70c41b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 14 Nov 2021 18:02:09 -0800 Subject: [PATCH] Simple circular reference detection fix --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 4a9b2e3b..dc047088 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -932,7 +932,7 @@ bool BfModule::CheckCircularDataError() return false; } - if ((checkTypeState->mType == mCurTypeInstance) && (checkIdx > 0)) + if ((checkTypeState->mType == mCurTypeInstance) && (checkIdx > 1)) { if (circularTypeStateEnd == NULL) circularTypeStateEnd = checkTypeState;