1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Fix serialization of ObjectClass

This commit is contained in:
Adriankhl
2023-03-12 21:23:40 +01:00
parent e764a7255d
commit 626721cbba
2 changed files with 3 additions and 2 deletions

View File

@@ -263,6 +263,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version) template <typename Handler> void serialize(Handler &h, const int version)
{ {
h & id;
h & handlerName; h & handlerName;
h & base; h & base;
h & objects; h & objects;

View File

@@ -14,8 +14,8 @@
VCMI_LIB_NAMESPACE_BEGIN VCMI_LIB_NAMESPACE_BEGIN
const ui32 SERIALIZATION_VERSION = 817; const ui32 SERIALIZATION_VERSION = 818;
const ui32 MINIMAL_SERIALIZATION_VERSION = 813; const ui32 MINIMAL_SERIALIZATION_VERSION = 818;
const std::string SAVEGAME_MAGIC = "VCMISVG"; const std::string SAVEGAME_MAGIC = "VCMISVG";
class CHero; class CHero;