1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-03 14:52:11 +02:00
This commit is contained in:
AlexVinS 2016-02-15 18:16:45 +03:00
parent 150fcc9422
commit 5a8ee32f89

View File

@ -217,14 +217,15 @@ void CMapFormatJson::serializePlayerInfo(JsonSerializeFormat & handler)
{
PlayerInfo & info = mapHeader->players[player];
auto playerData = playersData.enterStruct(GameConstants::PLAYER_COLOR_NAMES[player]);
if(handler.saving)
{
if(!info.canAnyonePlay())
continue;
}
else
auto playerData = playersData.enterStruct(GameConstants::PLAYER_COLOR_NAMES[player]);
if(!handler.saving)
{
if(playerData.get().isNull())
{
@ -262,7 +263,7 @@ void CMapFormatJson::serializePlayerInfo(JsonSerializeFormat & handler)
//heroes
{
auto heroes = playersData.enterStruct("heroes");
//auto heroes = playerData.enterStruct("heroes");
}