1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed invalid mReceivingValue usage in BfInitializerExpression

This commit is contained in:
Brian Fiete 2025-02-02 08:28:42 -08:00
parent eecc6540a2
commit 729ca1e8c4

View file

@ -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;