From d5954aba68873b3b955c34d1481a226e21bfb17c Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 26 Mar 2023 13:23:19 +0200 Subject: [PATCH] Add suffix to the format version name --- components/esm3/formatversion.hpp | 2 +- components/esm3/savedgame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esm3/formatversion.hpp b/components/esm3/formatversion.hpp index 2824ced3ec..04fcb7e8a6 100644 --- a/components/esm3/formatversion.hpp +++ b/components/esm3/formatversion.hpp @@ -21,7 +21,7 @@ namespace ESM inline constexpr FormatVersion MaxOldCreatureStatsFormatVersion = 19; inline constexpr FormatVersion MaxLimitedSizeStringsFormatVersion = 22; inline constexpr FormatVersion MaxStringRefIdFormatVersion = 23; - inline constexpr FormatVersion MaxSavedGameCellNameAsRefId = 24; + inline constexpr FormatVersion MaxSavedGameCellNameAsRefIdFormatVersion = 24; inline constexpr FormatVersion CurrentSaveGameFormatVersion = 25; } diff --git a/components/esm3/savedgame.cpp b/components/esm3/savedgame.cpp index 1cf0ea033c..6652179ea9 100644 --- a/components/esm3/savedgame.cpp +++ b/components/esm3/savedgame.cpp @@ -13,7 +13,7 @@ namespace ESM mPlayerClassId = esm.getHNORefId("PLCL"); mPlayerClassName = esm.getHNOString("PLCN"); - if (esm.getFormatVersion() <= ESM::MaxSavedGameCellNameAsRefId) + if (esm.getFormatVersion() <= ESM::MaxSavedGameCellNameAsRefIdFormatVersion) mPlayerCellName = esm.getHNRefId("PLCE").toString(); else mPlayerCellName = esm.getHNString("PLCE");