Skip to content

Commit

Permalink
MP saved game check: fix type mismatch introduced in ac1e3e6
Browse files Browse the repository at this point in the history
This was cherry-picked from 1.14, and the type of parent_.params_.saved_game has changed since.
  • Loading branch information
mattsc committed Dec 23, 2018
1 parent ac1e3e6 commit 9002751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_initialization/connect_engine.cpp
Expand Up @@ -1052,7 +1052,7 @@ config side_engine::new_config() const
// AI algorithm, we do nothing. Otherwise we add the chosen AI and if this
// is a saved game, we also remove the old stages from the AI config.
if(ai_algorithm_ != "use_saved") {
if(parent_.params_.saved_game) {
if(parent_.params_.saved_game == mp_game_settings::SAVED_GAME_MODE::MIDGAME) {
for (config &ai_config : res.child_range("ai")) {
ai_config.clear_children("stage");
}
Expand Down

0 comments on commit 9002751

Please sign in to comment.