Skip to content

Commit

Permalink
fix mid scenario saves
Browse files Browse the repository at this point in the history
previously mid-scenario saved accidently contained
[carryover_sides_start] instead of [carryover_sides]. It is not clear
whether the previous behaviour causes bugs but it was not the intended
behaviour.
  • Loading branch information
gfgtdf committed Mar 7, 2015
1 parent 4e6be2e commit 1edeff4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/saved_game.cpp
Expand Up @@ -339,11 +339,13 @@ void saved_game::expand_carryover()
carryover_info sides(carryover_);

sides.transfer_to(get_starting_pos());
BOOST_FOREACH(config& side_cfg, get_starting_pos().child_range("side")){
BOOST_FOREACH(config& side_cfg, get_starting_pos().child_range("side"))
{
sides.transfer_all_to(side_cfg);
}

carryover_ = sides.to_config();
has_carryover_expanded_ = true;
}
}

Expand Down

0 comments on commit 1edeff4

Please sign in to comment.