show the creature name for soul gems (if any)

actorid
scrawl 13 years ago
parent c044fadcc3
commit c2fdacc84f

@ -132,6 +132,12 @@ namespace MWClass
info.caption = ref->base->name;
info.icon = ref->base->icon;
if (ref->ref.soul != "")
{
const ESM::Creature *creature = environment.mWorld->getStore().creatures.search(ref->ref.soul);
info.caption += " (" + creature->name + ")";
}
std::string text;
if (ref->base->name == environment.mWorld->getStore().gameSettings.search("sGold")->str)

Loading…
Cancel
Save