mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed inline set on extern methods
This commit is contained in:
parent
496eae24ad
commit
04126a7e40
2 changed files with 7 additions and 2 deletions
|
@ -4124,7 +4124,7 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
mModule->AddDependency(curCheckType, mModule->mCurTypeInstance, BfDependencyMap::DependencyFlag_ConstEvalConstField);
|
||||
if ((mModule->mContext->mCurTypeState != NULL) && (mModule->mContext->mCurTypeState->mCurFieldDef != NULL))
|
||||
{
|
||||
// If we're initializing another const field then
|
||||
// If we're initializing another const field then also set it as having const eval
|
||||
auto resolvingFieldInstance = &mModule->mContext->mCurTypeState->mTypeInstance->mFieldInstances[mModule->mContext->mCurTypeState->mCurFieldDef->mIdx];
|
||||
if (resolvingFieldInstance->GetFieldDef()->mIsConst)
|
||||
resolvingFieldInstance->mHadConstEval = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue