mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Method range check
This commit is contained in:
parent
252f790525
commit
4f8426d8f1
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue