Add CurrentContentFormatVersion to Esm3SaveLoadRecordTest parameters

depth-refraction
elsid 2 years ago
parent e3944f741e
commit fd9f652f43
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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

Loading…
Cancel
Save