- fix the wrong register type being freed when initializing arrays.

This commit is contained in:
Chronos Ouroboros 2022-02-16 23:40:50 -03:00 committed by Rachael Alexanderson
parent 1919534298
commit 590f45441f
1 changed files with 1 additions and 1 deletions

View File

@ -11224,7 +11224,7 @@ ExpEmit FxLocalArrayDeclaration::Emit(VMFunctionBuilder *build)
}
if (!isDynamicArray)
{
build->Registers[REGT_INT].Return(arrOffsetReg, 1);
build->Registers[REGT_POINTER].Return(arrOffsetReg, 1);
}
return ExpEmit();