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:
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> 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();
|
||||||
|
|
Loading…
Reference in a new issue