diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 5ae11a55..04417a8a 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -20960,8 +20960,7 @@ void BfExprEvaluator::Visit(BfIndexerExpression* indexerExpr) methodMatcher.mTarget = target; methodMatcher.CheckMethod(startCheckTypeInst, curCheckType, checkMethod, false); - if ((methodMatcher.mBestMethodDef == checkMethod) || - ((foundProp == NULL) && (methodMatcher.mBackupMethodDef == checkMethod))) + if ((methodMatcher.mBestMethodDef == checkMethod) || (methodMatcher.mBackupMethodDef == checkMethod)) { foundPropTypeInst = curCheckType; foundProp = prop;