fixup 0656e93134
*now* it returns const, and recipients are const
This commit is contained in:
parent
0656e93134
commit
d734b09d18
2 changed files with 3 additions and 3 deletions
|
@ -347,8 +347,8 @@ static config unit_alignment(const unit* u)
|
|||
{
|
||||
if (!u) return report();
|
||||
std::ostringstream str, tooltip;
|
||||
std::string align = unit_type::alignment_description(u->alignment(), u->gender());
|
||||
std::string align_id = lexical_cast<std::string>(u->alignment());
|
||||
const std::string align = unit_type::alignment_description(u->alignment(), u->gender());
|
||||
const std::string align_id = lexical_cast<std::string>(u->alignment());
|
||||
int cm = combat_modifier(resources::screen->displayed_unit_hex(), u->alignment(),
|
||||
u->is_fearless());
|
||||
|
||||
|
|
|
@ -243,7 +243,7 @@ public:
|
|||
)
|
||||
|
||||
ALIGNMENT alignment() const { return alignment_; }
|
||||
inline static std::string alignment_description(ALIGNMENT align, unit_race::GENDER gender = unit_race::MALE)
|
||||
inline static const std::string alignment_description(ALIGNMENT align, unit_race::GENDER gender = unit_race::MALE)
|
||||
{
|
||||
std::string str = std::string();
|
||||
if (gender == unit_race::FEMALE) {
|
||||
|
|
Loading…
Add table
Reference in a new issue