added support for older saves (fails)

This commit is contained in:
Henning Koehler
2018-02-18 17:33:23 +13:00
parent d594845c32
commit ef7900d0a2
3 changed files with 15 additions and 5 deletions
+9 -3
View File
@@ -99,9 +99,15 @@ public:
h & initialArmy;
h & heroClass;
h & secSkillsInit;
//h & specDeprecated;
//h & specialtyDeprecated;
h & specialty;
if(version >= 778)
{
h & specialty;
}
else
{
h & specDeprecated;
h & specialtyDeprecated;
}
h & spells;
h & haveSpellBook;
h & sex;
+2 -1
View File
@@ -365,7 +365,8 @@ struct DLL_LINKAGE Bonus : public std::enable_shared_from_this<Bonus>
h & effectRange;
h & limiter;
h & propagator;
h & updater;
if(version >= 778)
h & updater;
}
template <typename Ptr>
+4 -1
View File
@@ -297,7 +297,10 @@ public:
h & visitedTown;
h & boat;
h & type;
h & specialty;
if(version >= 778)
h & specialty;
else
h & specialtyDeprecated;
h & commander;
h & visitedObjects;
BONUS_TREE_DESERIALIZATION_FIX