mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- fixed: loading sector damage information from an old savegame could retrieve invalid data due to an uninitialized variable.
This commit is contained in:
parent
5421213711
commit
68fcbc0c92
1 changed files with 1 additions and 0 deletions
|
@ -878,6 +878,7 @@ FArchive &operator<< (FArchive &arc, secspecial_t &p)
|
|||
int special;
|
||||
arc << special;
|
||||
sector_t sec;
|
||||
memset(&sec, 0, sizeof(sec));
|
||||
P_InitSectorSpecial(&sec, special, true);
|
||||
sec.GetSpecial(&p);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue