- 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 fd0681edda
commit 8b001956ad

View file

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