Add a log message if a campaign doesn't have a scenario matching first_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 tag needs to be [multiplayer], [test] or [tutorial] instead of [scenario].

(cherry picked from commit d67e08826d)
This commit is contained in:
Steve Cotton 2019-11-07 18:28:23 +01:00
parent 2bec7e3251
commit 0e726b9fce

View file

@ -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();
}