瀏覽代碼

Fixed null type crash during comptime circular data error

Brian Fiete 6 月之前
父節點
當前提交
72477fd2bf
共有 1 個文件被更改,包括 1 次插入5 次删除
  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)
 		{