fix travis build

don't know why the previous code compiled on msvc but not on travis.
This commit is contained in:
gfgtdf 2016-08-10 17:21:38 +02:00
parent 16d5221934
commit 869d5a1b78

View file

@ -1265,6 +1265,7 @@ void play_controller::show_objectives() const
{
const team& t = gamestate().board_.teams()[gui_->viewing_team()];
static const std::string no_objectives(_("No objectives available"));
gui2::show_transient_message(gui_->video(), get_scenario_name(), (t.objectives().empty() ? no_objectives : t.objectives()), "", true);
std::string objectives = t.objectives();
gui2::show_transient_message(gui_->video(), get_scenario_name(), (objectives.empty() ? no_objectives : objectives), "", true);
t.reset_objectives_changed();
}