mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed 'using' crash
This commit is contained in:
parent
468882bd5b
commit
4a3871a6c0
1 changed files with 1 additions and 1 deletions
|
@ -2372,7 +2372,7 @@ bool BfModule::CheckProtection(BfProtectionCheckFlags& flags, BfTypeInstance* me
|
||||||
auto mixinOwner = mCurMethodState->mMixinState->mMixinMethodInstance->GetOwner();
|
auto mixinOwner = mCurMethodState->mMixinState->mMixinMethodInstance->GetOwner();
|
||||||
curCheckType = mixinOwner;
|
curCheckType = mixinOwner;
|
||||||
}
|
}
|
||||||
bool allowPrivate = (memberOwner->mTypeDef == curCheckType->mTypeDef);
|
bool allowPrivate = (curCheckType != NULL) && (memberOwner->mTypeDef == curCheckType->mTypeDef);
|
||||||
if (curCheckType != NULL)
|
if (curCheckType != NULL)
|
||||||
allowPrivate |= IsInnerType(curCheckType->mTypeDef, memberOwner->mTypeDef);
|
allowPrivate |= IsInnerType(curCheckType->mTypeDef, memberOwner->mTypeDef);
|
||||||
if (allowPrivate)
|
if (allowPrivate)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue