mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 19:15:41 +00:00
Add CurrentContentFormatVersion to Esm3SaveLoadRecordTest parameters
This commit is contained in:
parent
e3944f741e
commit
fd9f652f43
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue