Procházet zdrojové kódy

Simple circular reference detection fix

Brian Fiete před 3 roky
rodič
revize
f9b4526934
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      IDEHelper/Compiler/BfModuleTypeUtils.cpp

+ 1 - 1
IDEHelper/Compiler/BfModuleTypeUtils.cpp

@@ -932,7 +932,7 @@ bool BfModule::CheckCircularDataError()
 				return false;
 				return false;
 		}
 		}
 
 
-		if ((checkTypeState->mType == mCurTypeInstance) && (checkIdx > 0))
+		if ((checkTypeState->mType == mCurTypeInstance) && (checkIdx > 1))
 		{
 		{
 			if (circularTypeStateEnd == NULL)
 			if (circularTypeStateEnd == NULL)
 				circularTypeStateEnd = checkTypeState;
 				circularTypeStateEnd = checkTypeState;