add compability code for old savefiles

midgame saves (those that have [snapshot]) shoudn't have a [carryover_sides_start]
This commit is contained in:
gfgtdf 2014-06-15 22:55:38 +02:00
parent f25496ebc2
commit c5301e5851

View file

@ -708,6 +708,10 @@ void convert_old_saves(config& cfg){
snapshot.add_child("end_level_data", end_level);
snapshot.remove_child("end_level",0);
}
if(cfg.has_child("carryover_sides_start"))
{
cfg.remove_child("carryover_sides_start", 0);
}
}
//1.12-1.13 end