dwarfmonitor: Use a reasonable default for unhandled item types

develop
lethosor 2018-01-18 10:17:40 -05:00
parent b035d9e53a
commit 74aefddd75
1 changed files with 12 additions and 1 deletions

@ -1216,7 +1216,18 @@ struct preference_map
break; break;
default: default:
label = string("UNKNOWN ") + ENUM_ATTR_STR(item_type, caption, pref.item_type); label = ENUM_ATTR_STR(item_type, caption, pref.item_type);
if (label.size())
{
if (label[label.size() - 1] == 's')
label += "es";
else
label += "s";
}
else
{
label = "UNKNOWN";
}
break; break;
} }