diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 73a6f53d..4bccbfcf 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -11818,7 +11818,7 @@ void BfExprEvaluator::Visit(BfInitializerExpression* initExpr) { if (type->IsValueType()) { - if (mReceivingValue != NULL) + if ((mReceivingValue != NULL) && (mReceivingValue->mType == type) && (mReceivingValue->IsAddr())) { mResult = *mReceivingValue; mReceivingValue = NULL;