From cd9e18a72b0718f41d168d30b0ca03efddd36989 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 11 Jan 2016 23:44:13 +0100 Subject: [PATCH] - fixed: operator<< (FArchive &arc, secspecial_t &p) erroneously read the old special in the compatibility handler as a short, but it must be read as an int. - bumped savegame version to bring it in line with a GZDoom exclusive change. --- src/p_sectors.cpp | 2 +- src/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_sectors.cpp b/src/p_sectors.cpp index 5a60933ba..6c5c08a56 100644 --- a/src/p_sectors.cpp +++ b/src/p_sectors.cpp @@ -883,7 +883,7 @@ FArchive &operator<< (FArchive &arc, secspecial_t &p) { if (SaveVersion < 4529) { - short special; + int special; arc << special; sector_t sec; P_InitSectorSpecial(&sec, special, true); diff --git a/src/version.h b/src/version.h index 6a0eb9c4b..b8c4facb0 100644 --- a/src/version.h +++ b/src/version.h @@ -76,7 +76,7 @@ const char *GetVersionString(); // Use 4500 as the base git save version, since it's higher than the // SVN revision ever got. -#define SAVEVER 4530 +#define SAVEVER 4531 #define SAVEVERSTRINGIFY2(x) #x #define SAVEVERSTRINGIFY(x) SAVEVERSTRINGIFY2(x)