default profile key to unit's image

This commit is contained in:
Dominic Bolin 2006-04-04 17:17:44 +00:00
parent 9757574f13
commit 17f86c0327

View file

@ -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