Explorar el Código

Fixed null type crash during comptime circular data error

Brian Fiete hace 6 meses
padre
commit
72477fd2bf
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      IDEHelper/Compiler/BfModuleTypeUtils.cpp

+ 1 - 5
IDEHelper/Compiler/BfModuleTypeUtils.cpp

@@ -2845,6 +2845,7 @@ void BfModule::ExecuteCEOnCompile(CeEmitContext* ceEmitContext, BfTypeInstance*
 
 		BfTypeState typeState;
 		typeState.mPrevState = mContext->mCurTypeState;
+		typeState.mType = typeInstance;
 		typeState.mForceActiveTypeDef = methodDef->mDeclaringType;
 		SetAndRestoreValue<BfTypeState*> prevTypeState(mContext->mCurTypeState, &typeState);
 
@@ -2898,11 +2899,6 @@ void BfModule::ExecuteCEOnCompile(CeEmitContext* ceEmitContext, BfTypeInstance*
 			continue;
 		}
 
-		if (typeInstance->mTypeDef->mName->ToString() == "AssetType")
-		{
-			NOP;
-		}	
-
 		SetAndRestoreValue<CeEmitContext*> prevEmitContext(mCompiler->mCeMachine->mCurEmitContext);
 		if (onCompileKind == BfCEOnCompileKind_TypeInit)
 		{