mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed field lookup crash with null mCurMethodInstance
This commit is contained in:
parent
483eb41c6e
commit
2af4468b4d
1 changed files with 1 additions and 1 deletions
|
@ -4213,7 +4213,7 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
}
|
||||
}
|
||||
|
||||
if (mModule->mCurMethodInstance->mIsUnspecialized)
|
||||
if ((mModule->mCurMethodInstance != NULL) && (mModule->mCurMethodInstance->mIsUnspecialized))
|
||||
{
|
||||
if (genericParamInst->mTypeConstraint != NULL)
|
||||
target.mType = genericParamInst->mTypeConstraint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue