mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 14:13:28 +00:00
fix mid scenario saves
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.
This commit is contained in:
parent
4e6be2eab3
commit
1edeff4ee2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user