1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 11:39:44 +00:00

Mark summon effects as applied if they have spawned a creature

This commit is contained in:
Evil Eye 2022-08-21 12:41:45 +02:00
parent 510eac3fb4
commit 8b02c17ad4

View file

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