mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: Vector array elements failed to allocate the proper amount of registers.
This commit is contained in:
parent
490fd8f3a0
commit
e333e31410
1 changed files with 1 additions and 1 deletions
|
@ -7445,7 +7445,7 @@ ExpEmit FxArrayElement::Emit(VMFunctionBuilder *build)
|
|||
else
|
||||
{
|
||||
start.Free(build);
|
||||
ExpEmit dest(build, ValueType->GetRegType());
|
||||
ExpEmit dest(build, ValueType->GetRegType(), ValueType->GetRegCount());
|
||||
// added 1 to use the *_R version that takes the offset from a register
|
||||
build->Emit(arraytype->ElementType->GetLoadOp() + 1, dest.RegNum, start.RegNum, indexwork.RegNum);
|
||||
return dest;
|
||||
|
|
Loading…
Reference in a new issue