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:
parent
d594845c32
commit
ef7900d0a2
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user