From 68fcbc0c92a5ea4c3f402a4e7f73397651f10d6e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 21 Jan 2016 14:54:14 +0100 Subject: [PATCH] - fixed: loading sector damage information from an old savegame could retrieve invalid data due to an uninitialized variable. --- src/p_sectors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_sectors.cpp b/src/p_sectors.cpp index 83adc438f..8ee5c280b 100644 --- a/src/p_sectors.cpp +++ b/src/p_sectors.cpp @@ -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); }