- 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:
Christoph Oelckers 2017-01-07 11:36:57 +01:00
parent acf66d9f8f
commit 42b1432b64

View file

@ -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;