- added GC handling for all backend pointers in the map data.

GC is not active yet!
This commit is contained in:
Christoph Oelckers 2021-12-06 00:50:33 +01:00
parent db240ea2b0
commit 0dd756fa32
13 changed files with 45 additions and 28 deletions

View file

@ -526,3 +526,18 @@ void setWallSectors()
}
}
void MarkMap()
{
for (auto& sect : sectors())
{
GC::Mark(sect.firstEntry);
GC::Mark(sect.lastEntry);
if (isDukeLike()) GC::Mark(sect.hitagactor);
else if (isBlood())
{
GC::Mark(sect.upperLink);
GC::Mark(sect.lowerLink);
}
}
}