mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-08 14:01:49 +00:00
- fixed: initialization of local vector variables did not properly allocate registers if the initializer was a subelement of another local vector variable.
This commit is contained in:
parent
fd0681edda
commit
8b001956ad
1 changed files with 1 additions and 1 deletions
|
@ -10058,7 +10058,7 @@ ExpEmit FxLocalVariableDeclaration::Emit(VMFunctionBuilder *build)
|
||||||
}
|
}
|
||||||
emitval.Free(build);
|
emitval.Free(build);
|
||||||
}
|
}
|
||||||
else if (Init->ExprType != EFX_LocalVariable)
|
else if (!emitval.Fixed)
|
||||||
{
|
{
|
||||||
// take over the register that got allocated while emitting the Init expression.
|
// take over the register that got allocated while emitting the Init expression.
|
||||||
RegNum = emitval.RegNum;
|
RegNum = emitval.RegNum;
|
||||||
|
|
Loading…
Reference in a new issue