Skip to content

Commit

Permalink
tunit_attack: list trait names, not ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 27, 2016
1 parent c19ddba commit 0da9858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/unit_attack.cpp
Expand Up @@ -101,7 +101,7 @@ static std::string format_stats(const unit& u)
const std::string name = "<span size='large'>" + (!u.name().empty() ? u.name() : " ") + "</span>";
std::string traits;

BOOST_FOREACH(const std::string& trait, u.get_traits_list()) {
BOOST_FOREACH(const std::string& trait, u.trait_names()) {
traits += (traits.empty() ? "" : ", ") + trait;
}

Expand Down

0 comments on commit 0da9858

Please sign in to comment.