mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix serialization
This commit is contained in:
parent
00e9cef19f
commit
c5225aab70
@ -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";
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user