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

added support for older saves (fails)

This commit is contained in:
Henning Koehler 2017-09-10 16:03:02 +12:00
parent d594845c32
commit ef7900d0a2
3 changed files with 15 additions and 5 deletions

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;

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>

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