mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed invalid mReceivingValue usage in BfInitializerExpression
This commit is contained in:
parent
eecc6540a2
commit
729ca1e8c4
1 changed files with 1 additions and 1 deletions
|
@ -11818,7 +11818,7 @@ void BfExprEvaluator::Visit(BfInitializerExpression* initExpr)
|
||||||
{
|
{
|
||||||
if (type->IsValueType())
|
if (type->IsValueType())
|
||||||
{
|
{
|
||||||
if (mReceivingValue != NULL)
|
if ((mReceivingValue != NULL) && (mReceivingValue->mType == type) && (mReceivingValue->IsAddr()))
|
||||||
{
|
{
|
||||||
mResult = *mReceivingValue;
|
mResult = *mReceivingValue;
|
||||||
mReceivingValue = NULL;
|
mReceivingValue = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue