1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-04 02:41:37 +00:00

Don't run target-specific spell infliction code when there's no target (#7926)

This commit is contained in:
Alexei Kotov 2024-04-10 22:23:41 +03:00
parent 8037a6e765
commit 8751203849

View file

@ -188,6 +188,9 @@ namespace MWMechanics
for (auto& enam : effects.mList)
{
if (target.isEmpty())
break;
if (enam.mData.mRange != range)
continue;
const ESM::MagicEffect* magicEffect = store.find(enam.mData.mEffectID);