1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

Possible fix for #1348

This commit is contained in:
DjWarmonger
2013-07-22 09:48:25 +00:00
parent 3aec2daca1
commit 103a75e763
2 changed files with 9 additions and 7 deletions

View File

@ -760,20 +760,21 @@ public:
void blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) const override;
struct DLL_LINKAGE RestoredCreature // info about merging stacks after battle back into one
struct DLL_LINKAGE formationInfo // info about merging stacks after battle back into one
{
si32 basicType;
ui32 randomFormation; //random seed used to determine number of stacks and is there's upgraded stack
template <typename Handler> void serialize(Handler &h, const int version)
{
h & basicType;
h & basicType & randomFormation;
}
} restore;
} formation;
template <typename Handler> void serialize(Handler &h, const int version)
{
h & static_cast<CArmedInstance&>(*this);
h & identifier & character & message & resources & gainedArtifact & neverFlees & notGrowingTeam & temppower;
h & refusedJoining & restore;
h & refusedJoining & formation;
}
protected:
void setPropertyDer(ui8 what, ui32 val) override;