mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 23:23:54 +00:00
Fix effect source display
This commit is contained in:
parent
3e58655a90
commit
5c148a3d41
1 changed files with 4 additions and 1 deletions
|
@ -120,7 +120,10 @@ namespace MWGui
|
||||||
MWBase::Environment::get().getWorld ()->getStore ().get<ESM::MagicEffect>().find(effectIt->mEffectID);
|
MWBase::Environment::get().getWorld ()->getStore ().get<ESM::MagicEffect>().find(effectIt->mEffectID);
|
||||||
|
|
||||||
MagicEffectInfo effectInfo;
|
MagicEffectInfo effectInfo;
|
||||||
|
if (it->second.mName != "")
|
||||||
effectInfo.mSource = it->second.mName;
|
effectInfo.mSource = it->second.mName;
|
||||||
|
else
|
||||||
|
effectInfo.mSource = getSpellDisplayName(it->first);
|
||||||
effectInfo.mKey = MWMechanics::EffectKey (effectIt->mEffectID);
|
effectInfo.mKey = MWMechanics::EffectKey (effectIt->mEffectID);
|
||||||
if (magicEffect->mData.mFlags & ESM::MagicEffect::TargetSkill)
|
if (magicEffect->mData.mFlags & ESM::MagicEffect::TargetSkill)
|
||||||
effectInfo.mKey.mArg = effectIt->mSkill;
|
effectInfo.mKey.mArg = effectIt->mSkill;
|
||||||
|
|
Loading…
Reference in a new issue