|
@@ -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)
|
|
|
{
|