1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fix serialization

This commit is contained in:
Ivan Savenko 2022-12-30 00:36:10 +02:00
parent b89e8a9dfe
commit b8b1e07621
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ public:
h & animation; h & animation;
h & appearAnimation; h & appearAnimation;
h & triggerAnimation; h & triggerAnimation;
if (version > 805) if (version > 806)
{ {
h & appearSound; h & appearSound;
h & triggerSound; h & triggerSound;

View File

@ -14,7 +14,7 @@
VCMI_LIB_NAMESPACE_BEGIN VCMI_LIB_NAMESPACE_BEGIN
const ui32 SERIALIZATION_VERSION = 806; const ui32 SERIALIZATION_VERSION = 807;
const ui32 MINIMAL_SERIALIZATION_VERSION = 805; const ui32 MINIMAL_SERIALIZATION_VERSION = 805;
const std::string SAVEGAME_MAGIC = "VCMISVG"; const std::string SAVEGAME_MAGIC = "VCMISVG";

View File

@ -85,7 +85,7 @@ public:
template <typename Handler> void serialize(Handler & h, const int version) template <typename Handler> void serialize(Handler & h, const int version)
{ {
h & resourceName; h & resourceName;
if (version > 805) if (version > 806)
h & effectName; h & effectName;
h & verticalPosition; h & verticalPosition;
h & pause; h & pause;