Skip to content

Commit

Permalink
fix replay saves
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 17, 2014
1 parent d1ec285 commit 6b3af33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/saved_game.cpp
Expand Up @@ -104,11 +104,13 @@ saved_game::saved_game(const config& cfg)
this->starting_pos_ = scenario;
}

if(starting_pos_.empty() && carryover_sides_start.empty() && !carryover_sides.empty())
if(starting_pos_.empty() && replay_start_.empty() && carryover_sides_start.empty() && !carryover_sides.empty())
{
//Explain me: when could this happen?
//if we are loading a start of scenario save and don't have carryover_sides_start, use carryover_sides
//TODO: move this code to convert_old_saves
carryover_sides_start = carryover_sides;
carryover_sides = config();
}

LOG_NG << "scenario: '" << carryover_sides_start["next_scenario"].str() << "'\n";
Expand Down

0 comments on commit 6b3af33

Please sign in to comment.