diff --git a/apps/openmw/mwworld/magiceffects.cpp b/apps/openmw/mwworld/magiceffects.cpp index 38f17677ef..c1d0508fe1 100644 --- a/apps/openmw/mwworld/magiceffects.cpp +++ b/apps/openmw/mwworld/magiceffects.cpp @@ -196,7 +196,7 @@ namespace MWWorld { if (effect.mEffectId == key.mEffectId && effect.mEffectIndex == key.mEffectIndex) { - effect.mArg = ESM::RefId::generated(static_cast(actorId)); + effect.mArg = actorId; effect.mFlags |= ESM::ActiveEffect::Flag_Applied | ESM::ActiveEffect::Flag_Remove; found = true; break;