default profile key to unit's image
This commit is contained in:
parent
9757574f13
commit
17f86c0327
1 changed files with 4 additions and 1 deletions
|
@ -325,7 +325,10 @@ const t_string& unit::language_name() const
|
|||
// the unit's profile
|
||||
const std::string& unit::profile() const
|
||||
{
|
||||
return cfg_["profile"];
|
||||
if(cfg_["profile"] != "" && cfg_["profile"] != "unit_image") {
|
||||
return cfg_["profile"];
|
||||
}
|
||||
return absolute_image();
|
||||
}
|
||||
//information about the unit -- a detailed description of it
|
||||
const std::string& unit::unit_description() const
|
||||
|
|
Loading…
Add table
Reference in a new issue