mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +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
acf66d9f8f
commit
42b1432b64
1 changed files with 1 additions and 1 deletions
|
@ -10154,7 +10154,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