1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-22 17:11:29 +00:00

Add CurrentContentFormatVersion to Esm3SaveLoadRecordTest parameters

This commit is contained in:
elsid 2023-04-07 20:15:27 +02:00
parent e3944f741e
commit fd9f652f43
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -77,6 +77,7 @@ namespace ESM
std::vector<ESM::FormatVersion> getFormats() std::vector<ESM::FormatVersion> getFormats()
{ {
std::vector<ESM::FormatVersion> result({ std::vector<ESM::FormatVersion> result({
CurrentContentFormatVersion,
MaxLimitedSizeStringsFormatVersion, MaxLimitedSizeStringsFormatVersion,
MaxStringRefIdFormatVersion, MaxStringRefIdFormatVersion,
}); });
@ -242,6 +243,9 @@ namespace ESM
TEST_P(Esm3SaveLoadRecordTest, playerShouldNotChange) TEST_P(Esm3SaveLoadRecordTest, playerShouldNotChange)
{ {
// Player state is not saved to vanilla ESM format.
if (GetParam() == CurrentContentFormatVersion)
return;
std::minstd_rand random; std::minstd_rand random;
Player record{}; Player record{};
record.mObject.blank(); record.mObject.blank();