1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 09:53:54 +00:00

show the creature name for soul gems (if any)

This commit is contained in:
scrawl 2012-04-17 15:51:02 +02:00
parent c044fadcc3
commit c2fdacc84f

View file

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