From 5c148a3d416c32a582699ea9c5dfd7503e2a727f Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 9 Nov 2013 11:09:44 +0100 Subject: [PATCH] Fix effect source display --- apps/openmw/mwgui/spellicons.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/spellicons.cpp b/apps/openmw/mwgui/spellicons.cpp index 5d002792a2..dfbcfc2fff 100644 --- a/apps/openmw/mwgui/spellicons.cpp +++ b/apps/openmw/mwgui/spellicons.cpp @@ -120,7 +120,10 @@ namespace MWGui MWBase::Environment::get().getWorld ()->getStore ().get().find(effectIt->mEffectID); MagicEffectInfo effectInfo; - effectInfo.mSource = it->second.mName; + if (it->second.mName != "") + effectInfo.mSource = it->second.mName; + else + effectInfo.mSource = getSpellDisplayName(it->first); effectInfo.mKey = MWMechanics::EffectKey (effectIt->mEffectID); if (magicEffect->mData.mFlags & ESM::MagicEffect::TargetSkill) effectInfo.mKey.mArg = effectIt->mSkill;