Skip to content
Permalink
Browse files

Merge pull request #1231 from kav2k/DiaryFix

Save diaries with non-zero monthsService
  • Loading branch information
SupSuper committed Nov 18, 2019
2 parents 1c84405 + 7e43a19 commit 8b479117177a32e115180cac10f5b7ff245cbe93
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Savegame/Soldier.cpp
@@ -183,7 +183,7 @@ YAML::Node Soldier::save() const
{
node["death"] = _death->save();
}
if (Options::soldierDiaries && (!_diary->getMissionIdList().empty() || !_diary->getSoldierCommendations()->empty()))
if (Options::soldierDiaries && (!_diary->getMissionIdList().empty() || !_diary->getSoldierCommendations()->empty() || _diary->getMonthsService() > 0))
{
node["diary"] = _diary->save();
}

0 comments on commit 8b47911

Please sign in to comment.
You can’t perform that action at this time.