mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed error
This commit is contained in:
parent
8a4bf7ac8c
commit
ae2c12d974
1 changed files with 1 additions and 1 deletions
|
@ -19524,7 +19524,7 @@ void BfExprEvaluator::DoMemberReference(BfMemberReferenceExpression* memberRefEx
|
|||
{
|
||||
if (mModule->PreFail())
|
||||
{
|
||||
if ((thisValue.mType->IsPointer()) && (thisValue.mType->GetUnderlyingType()->IsObjectOrInterface()))
|
||||
if ((thisValue) && (thisValue.mType->IsPointer()) && (thisValue.mType->GetUnderlyingType()->IsObjectOrInterface()))
|
||||
mModule->Fail(StrFormat("Members cannot be referenced on type '%s' because the type is a pointer to a reference type (ie: a double-reference).",
|
||||
mModule->TypeToString(thisValue.mType).c_str()), nameRefNode);
|
||||
else if (thisValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue