Skip to content

Commit

Permalink
Fix GC ignoring DynArrays inside fixed Arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 authored and coelckers committed Nov 27, 2022
1 parent d4f4b9b commit 1a7a56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/scripting/core/types.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1a7a56c

Please sign in to comment.