fix travis build
don't know why the previous code compiled on msvc but not on travis.
This commit is contained in:
parent
16d5221934
commit
869d5a1b78
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue