Fix value of X = Y when Y is an int constant

This commit is contained in:
Ricardo Luís Vaz Silva 2023-02-11 12:51:25 -03:00 committed by Christoph Oelckers
parent 40cb7f14d0
commit 86bc9cafd4

View file

@ -2568,7 +2568,15 @@ ExpEmit FxAssign::Emit(VMFunctionBuilder *build)
}
pointer.Free(build);
return result;
if(intconst)
{ //fix int constant return for assignment
return Right->Emit(build);
}
else
{
return result;
}
}
//==========================================================================