1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed field access of static pointer struct member

This commit is contained in:
Brian Fiete 2020-09-16 05:29:54 -07:00
parent 49ca3b67bf
commit 9185d9f02a

View file

@ -8551,7 +8551,7 @@ void BfExprEvaluator::LookupQualifiedStaticField(BfAstNode* nameNode, BfIdentifi
{
BfPointerType* structPtrType = (BfPointerType*)mResult.mType;
mResult = mModule->LoadValue(mResult);
mResult.mType = structPtrType->mElementType;
mResult = BfTypedValue(mResult.mValue, structPtrType->mElementType, true);
}
if (!mResult)