From 981c23cafa3bb740667e963f0141dc4b793c85a1 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Sun, 5 Feb 2023 01:01:11 +0100 Subject: [PATCH] Bump serialization - not sure if necessary --- lib/CModHandler.h | 7 +++++-- lib/serializer/CSerializer.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/CModHandler.h b/lib/CModHandler.h index a5f746693..77fe51547 100644 --- a/lib/CModHandler.h +++ b/lib/CModHandler.h @@ -384,8 +384,11 @@ public: h & ATTACK_POINTS_DMG_MULTIPLIER_CAP; h & DEFENSE_POINT_DMG_MULTIPLIER; h & DEFENSE_POINTS_DMG_MULTIPLIER_CAP; - h & HERO_STARTING_ARMY_STACKS_COUNT_CHANCES; - h & DEFAULT_BUILDING_SET_DWELLING_CHANCES; + if(version >= 815) + { + h & HERO_STARTING_ARMY_STACKS_COUNT_CHANCES; + h & DEFAULT_BUILDING_SET_DWELLING_CHANCES; + } } } settings; diff --git a/lib/serializer/CSerializer.h b/lib/serializer/CSerializer.h index 4cd2b9587..0903f8bd8 100644 --- a/lib/serializer/CSerializer.h +++ b/lib/serializer/CSerializer.h @@ -14,7 +14,7 @@ VCMI_LIB_NAMESPACE_BEGIN -const ui32 SERIALIZATION_VERSION = 814; +const ui32 SERIALIZATION_VERSION = 815; const ui32 MINIMAL_SERIALIZATION_VERSION = 813; const std::string SAVEGAME_MAGIC = "VCMISVG";