mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
Fix value of X = Y
when Y is an int constant
This commit is contained in:
parent
40cb7f14d0
commit
86bc9cafd4
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue