mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 21:36:42 +00:00
Add suffix to the format version name
This commit is contained in:
parent
8f80895b59
commit
d5954aba68
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ namespace ESM
|
||||||
inline constexpr FormatVersion MaxOldCreatureStatsFormatVersion = 19;
|
inline constexpr FormatVersion MaxOldCreatureStatsFormatVersion = 19;
|
||||||
inline constexpr FormatVersion MaxLimitedSizeStringsFormatVersion = 22;
|
inline constexpr FormatVersion MaxLimitedSizeStringsFormatVersion = 22;
|
||||||
inline constexpr FormatVersion MaxStringRefIdFormatVersion = 23;
|
inline constexpr FormatVersion MaxStringRefIdFormatVersion = 23;
|
||||||
inline constexpr FormatVersion MaxSavedGameCellNameAsRefId = 24;
|
inline constexpr FormatVersion MaxSavedGameCellNameAsRefIdFormatVersion = 24;
|
||||||
inline constexpr FormatVersion CurrentSaveGameFormatVersion = 25;
|
inline constexpr FormatVersion CurrentSaveGameFormatVersion = 25;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace ESM
|
||||||
mPlayerClassId = esm.getHNORefId("PLCL");
|
mPlayerClassId = esm.getHNORefId("PLCL");
|
||||||
mPlayerClassName = esm.getHNOString("PLCN");
|
mPlayerClassName = esm.getHNOString("PLCN");
|
||||||
|
|
||||||
if (esm.getFormatVersion() <= ESM::MaxSavedGameCellNameAsRefId)
|
if (esm.getFormatVersion() <= ESM::MaxSavedGameCellNameAsRefIdFormatVersion)
|
||||||
mPlayerCellName = esm.getHNRefId("PLCE").toString();
|
mPlayerCellName = esm.getHNRefId("PLCE").toString();
|
||||||
else
|
else
|
||||||
mPlayerCellName = esm.getHNString("PLCE");
|
mPlayerCellName = esm.getHNString("PLCE");
|
||||||
|
|
Loading…
Reference in a new issue