Skip to content

Commit

Permalink
fixup! editor: Translate recruit list in tooltip (#3303)
Browse files Browse the repository at this point in the history
(cherry picked from commit e8fa34c)
  • Loading branch information
jostephd committed Oct 16, 2019
1 parent dc47cf8 commit 0815343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/action/mouse/mouse_action_unit.cpp
Expand Up @@ -63,7 +63,7 @@ void mouse_action_unit::move(editor_display& disp, const map_location& hex)
const auto& recruits = unit_it->recruits();
std::vector<t_string> recruit_type_names;
std::transform(recruits.begin(), recruits.end(), std::back_inserter(recruit_type_names),
[](const std::string& type_id) -> std::string {
[](const std::string& type_id) -> t_string {
const unit_type *new_unit_type = unit_types.find(type_id);
if(!new_unit_type) return VGETTEXT("(Unknown unit type: $type)", { { "type", type_id } });
return new_unit_type->type_name();
Expand Down

0 comments on commit 0815343

Please sign in to comment.