- fixed: loading sector damage information from an old savegame could retrieve invalid data due to an uninitialized variable.

This commit is contained in:
Christoph Oelckers 2016-01-21 14:54:14 +01:00
parent 5421213711
commit 68fcbc0c92

View file

@ -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);
}