Skip to content

Commit

Permalink
Add a log message if a campaign doesn't have a scenario matching firs…
Browse files Browse the repository at this point in the history
…t_scenario

Otherwise this situation gives the WML coder merely the message "Failed to load
the scenario", without any further hint about why. The tagname is printed in case
the scenario needs to be a [multiplayer] or a [test] instead of a [scenario].
  • Loading branch information
stevecotton committed Nov 7, 2019
1 parent cc4759c commit d67e088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/saved_game.cpp
Expand Up @@ -280,6 +280,7 @@ void saved_game::expand_scenario()
update_label();
set_defaults();
} else {
ERR_NG << "Couldn't find [" << classification().get_tagname() << "] with id=" << carryover_["next_scenario"] << std::endl;
this->starting_point_type_ = STARTING_POINT_INVALID;
this->starting_point_.clear();
}
Expand Down

0 comments on commit d67e088

Please sign in to comment.