1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-25 12:41:01 +00:00

Merge branch 'unique_summons' into 'master'

Mark summon effects as applied if they have spawned a creature

Closes #6955

See merge request OpenMW/openmw!2316
This commit is contained in:
psi29a 2022-08-21 12:02:38 +00:00
commit 8ec8e733a1

View File

@ -187,6 +187,7 @@ namespace MWWorld
if(effect.mEffectId == key.mEffectId && effect.mEffectIndex == key.mEffectIndex) if(effect.mEffectId == key.mEffectId && effect.mEffectIndex == key.mEffectIndex)
{ {
effect.mArg = actorId; effect.mArg = actorId;
effect.mFlags |= ESM::ActiveEffect::Flag_Applied | ESM::ActiveEffect::Flag_Remove;
found = true; found = true;
break; break;
} }