1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

CPlayerState serialize fix.

This commit is contained in:
AlexVinS
2016-09-04 13:43:09 +03:00
parent f4f170bf92
commit 22f729a3fe
3 changed files with 10 additions and 2 deletions

View File

@@ -43,7 +43,14 @@ public:
{
h & color & human & team & resources & status;
h & heroes & towns & availableHeroes & dwellings & quests & visitedObjects;
h & getBonusList(); //FIXME FIXME FIXME
if(version < 760)
{
//was: h & getBonusList();
BonusList junk;
h & junk;
}
h & status & daysWithoutCastle;
h & enteredLosingCheatCode & enteredWinningCheatCode;
h & static_cast<CBonusSystemNode&>(*this);

View File

@@ -27,7 +27,7 @@
#include "mapping/CCampaignHandler.h" //for CCampaignState
#include "rmg/CMapGenerator.h" // for CMapGenOptions
const ui32 version = 759;
const ui32 version = 760;
const ui32 minSupportedVersion = 753;
class CISer;

View File

@@ -162,6 +162,7 @@
<Unit filename="CObstacleInstance.h" />
<Unit filename="CPathfinder.cpp" />
<Unit filename="CPathfinder.h" />
<Unit filename="CPlayerState.h" />
<Unit filename="CRandomGenerator.cpp" />
<Unit filename="CRandomGenerator.h" />
<Unit filename="CScriptingModule.h" />