Skip to content

Commit

Permalink
Objectives: Always interpolate variables before showing
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 21, 2017
1 parent 86d00a4 commit e9895f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/play_controller.cpp
Expand Up @@ -1241,7 +1241,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"));
std::string objectives = t.objectives();
std::string objectives = interpolate_variables_into_string(t.objectives(), *gamestate_->get_game_data());
gui2::show_transient_message(gui_->video(), get_scenario_name(), (objectives.empty() ? no_objectives : objectives), "", true);
t.reset_objectives_changed();
}

0 comments on commit e9895f8

Please sign in to comment.