mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 04:06:40 +00:00
Merge branch 'notarget' into 'master'
Don't run target-specific spell infliction code when there's no target (#7926) Closes #7926 See merge request OpenMW/openmw!4019
This commit is contained in:
commit
c6921d5292
1 changed files with 3 additions and 0 deletions
|
@ -188,6 +188,9 @@ namespace MWMechanics
|
||||||
|
|
||||||
for (auto& enam : effects.mList)
|
for (auto& enam : effects.mList)
|
||||||
{
|
{
|
||||||
|
if (target.isEmpty())
|
||||||
|
break;
|
||||||
|
|
||||||
if (enam.mData.mRange != range)
|
if (enam.mData.mRange != range)
|
||||||
continue;
|
continue;
|
||||||
const ESM::MagicEffect* magicEffect = store.find(enam.mData.mEffectID);
|
const ESM::MagicEffect* magicEffect = store.find(enam.mData.mEffectID);
|
||||||
|
|
Loading…
Reference in a new issue