1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix serialization

This commit is contained in:
Ivan Savenko 2023-04-04 22:22:58 +03:00
parent 00e9cef19f
commit c5225aab70
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@
VCMI_LIB_NAMESPACE_BEGIN
const ui32 SERIALIZATION_VERSION = 820;
const ui32 SERIALIZATION_VERSION = 821;
const ui32 MINIMAL_SERIALIZATION_VERSION = 820;
const std::string SAVEGAME_MAGIC = "VCMISVG";

View File

@ -272,6 +272,8 @@ public:
template <typename Handler> void serialize(Handler & h, const int version)
{
h & identifier;
if (version > 820)
h & modScope;
h & id;
h & level;
h & power;