- added initialization of linked sectors

Resizing of linked sectors arrays during serialization could lead to processing of pointers to junk data

https://forum.zdoom.org/viewtopic.php?t=71252
This commit is contained in:
alexey.lysiuk 2021-01-30 15:09:35 +02:00
parent 638c49fe0f
commit ac05f0a6b2
1 changed files with 6 additions and 0 deletions

View File

@ -522,6 +522,12 @@ struct FLinkedSector
{
sector_t *Sector;
int Type;
FLinkedSector(sector_t *sector = nullptr, int type = 0)
: Sector(sector)
, Type(type)
{
}
};