Fix GC ignoring DynArrays inside fixed Arrays

This commit is contained in:
Ricardo Luís Vaz Silva 2022-11-27 02:53:57 -03:00 committed by Christoph Oelckers
parent d4f4b9b599
commit 1a7a56ce39

View file

@ -1862,7 +1862,7 @@ void PArray::SetPointer(void *base, unsigned offset, TArray<size_t> *special)
void PArray::SetPointerArray(void *base, unsigned offset, TArray<size_t> *special)
{
if (ElementType->isStruct())
if (ElementType->isStruct() || ElementType->isDynArray())
{
for (unsigned int i = 0; i < ElementCount; ++i)
{