1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-23 19:20:56 +00:00

Add suffix to the format version name

This commit is contained in:
elsid 2023-03-26 13:23:19 +02:00
parent 8f80895b59
commit d5954aba68
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
2 changed files with 2 additions and 2 deletions

View File

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

View File

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