diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 11bb4acb..56e35a2c 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -2452,6 +2452,9 @@ void BfModule::ExecuteCEOnCompile(CeEmitContext* ceEmitContext, BfTypeInstance* if (!typeInstance->IsTypeMemberIncluded(methodDef->mDeclaringType, mCurTypeInstance->mTypeDef, this)) continue; + if (methodDef->mIdx >= typeInstance->mMethodInstanceGroups.mSize) + continue; + auto& methodInstanceGroup = typeInstance->mMethodInstanceGroups[methodDef->mIdx]; if (methodInstanceGroup.mDefaultCustomAttributes == NULL) {