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");