mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
* splitted CGameState into general game state and battle game state
* added missing fields to serialize in CHero
This commit is contained in:
@@ -26,6 +26,10 @@ struct SSpecialtyInfo
|
||||
si32 val;
|
||||
si32 subtype;
|
||||
si32 additionalinfo;
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & type & val & subtype & additionalinfo;
|
||||
}
|
||||
};
|
||||
|
||||
class DLL_EXPORT CHero
|
||||
@@ -52,7 +56,7 @@ public:
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & name & ID & lowStack & highStack & refTypeStack & heroType & startingSpell & heroClass;
|
||||
h & name & ID & lowStack & highStack & refTypeStack & heroClass & heroType & secSkillsInit & spec & startingSpell & sex;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user