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

Null check in LoadProperty

This commit is contained in:
Brian Fiete 2022-04-16 07:26:50 -07:00
parent 54e02c59cd
commit 946a72d21d

View file

@ -4563,7 +4563,7 @@ BfTypedValue BfExprEvaluator::LoadProperty(BfAstNode* targetSrc, BfTypedValue ta
} }
} }
bool isBaseLookup = typeInstance != target.mType; bool isBaseLookup = (target.mType) && (typeInstance != target.mType);
if ((isBaseLookup) && (target.mType->IsWrappableType())) if ((isBaseLookup) && (target.mType->IsWrappableType()))
isBaseLookup = false; isBaseLookup = false;