From 26df78fce28fc0a0851a146154292e27f62d1a58 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 18 Jan 2022 11:04:29 -0500 Subject: [PATCH] Ref fix --- IDEHelper/Compiler/BfExprEvaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 650d0e2c..c7f335a1 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -6163,7 +6163,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance* BfTypedValue BfExprEvaluator::CreateCall(BfMethodMatcher* methodMatcher, BfTypedValue target) { - auto& moduleMethodInstance = GetSelectedMethod(*methodMatcher); + auto moduleMethodInstance = GetSelectedMethod(*methodMatcher); if (moduleMethodInstance.mMethodInstance == NULL) return BfTypedValue(); if ((target) && (target.mType != moduleMethodInstance.mMethodInstance->GetOwner()))