From 31927886f583ccaa5c6d1d9d6e1b04989217f6cf Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Wed, 11 Jun 2014 01:54:37 +0200 Subject: [PATCH] fixup renaming game_state -> saved_game this somehow got lost. --- src/saved_game.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/saved_game.cpp b/src/saved_game.cpp index 75fa15167c41..ae5863032d15 100644 --- a/src/saved_game.cpp +++ b/src/saved_game.cpp @@ -154,7 +154,16 @@ static void convert_old_saves(config& cfg){ LOG_RG<<"removing snapshot \n"; cfg.remove_child("snapshot", 0); } - + //?-1.11.? end + //1.12-1.13 begin + if(config& carryover_sides_start = cfg.child("carryover_sides_start")) + { + if(!carryover_sides_start.has_attribute("next_underlying_unit_id")) + { + carryover_sides_start["next_underlying_unit_id"] = cfg["next_underlying_unit_id"]; + } + } + //1.12-1.13 end LOG_RG<<"cfg after conversion "<