mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
Fix effect source display
This commit is contained in:
parent
3e58655a90
commit
5c148a3d41
@ -120,7 +120,10 @@ namespace MWGui
|
||||
MWBase::Environment::get().getWorld ()->getStore ().get<ESM::MagicEffect>().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;
|
||||
|
Loading…
Reference in New Issue
Block a user