Skip to content

Commit

Permalink
Remove unused carryover data from saves
Browse files Browse the repository at this point in the history
Ths removes the content of [variables] and [menu_item]s from
[carryover_sides] in mid-scenario saves. This data is not needed becasue
it is already merged in the scenario data.
  • Loading branch information
gfgtdf committed Aug 28, 2015
1 parent a245f0e commit 6e14fc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/carryover.cpp
Expand Up @@ -198,7 +198,8 @@ void carryover_info::transfer_all_to(config& side_cfg){
}
}

void carryover_info::transfer_to(config& level){
void carryover_info::transfer_to(config& level)
{
if(!level.has_attribute("next_underlying_unit_id"))
{
level["next_underlying_unit_id"] = next_underlying_unit_id_;
Expand All @@ -220,6 +221,8 @@ void carryover_info::transfer_to(config& level){
}

next_scenario_ = "";
variables_ = config();
wml_menu_items_ = game_events::wmi_container();

}

Expand Down

0 comments on commit 6e14fc4

Please sign in to comment.