Ver Fonte

Fixed mixin crash

Brian Fiete há 5 anos atrás
pai
commit
26205eefcd
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 3 - 0
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -13738,6 +13738,9 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
 			}
 			argValue = arg->mTypedValue;
 		}
+
+		if (!argValue)
+			continue;
 		
 		localVar->mResolvedType = argValue.mType;				
 		if (argValue.mType->IsRef())