Browse Source

Fixed var case in SetupNullConditional

Brian Fiete 3 years ago
parent
commit
134893c11f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 2 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -20514,6 +20514,8 @@ BfTypedValue BfExprEvaluator::SetupNullConditional(BfTypedValue thisValue, BfTok
 	}	
 
 	thisValue = mModule->LoadValue(thisValue);
+	if (thisValue.mType->IsVar())
+		return thisValue;
 
 	BfPendingNullConditional* pendingNullCond = mModule->mCurMethodState->mPendingNullConditional;
 	if (pendingNullCond == NULL)