mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- 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:
parent
638c49fe0f
commit
ac05f0a6b2
1 changed files with 6 additions and 0 deletions
|
@ -522,6 +522,12 @@ struct FLinkedSector
|
|||
{
|
||||
sector_t *Sector;
|
||||
int Type;
|
||||
|
||||
FLinkedSector(sector_t *sector = nullptr, int type = 0)
|
||||
: Sector(sector)
|
||||
, Type(type)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue