diff --git a/core/src/avm1/activation.rs b/core/src/avm1/activation.rs index 4dd5e85c5..0fe034522 100644 --- a/core/src/avm1/activation.rs +++ b/core/src/avm1/activation.rs @@ -2959,7 +2959,9 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> { /// Changes the target clip. pub fn set_target_clip(&mut self, value: Option>) { - self.target_clip = value; + // The target should revert to `None` if the clip is removed. + let is_clip_removed = value.map(|clip| clip.removed()).unwrap_or_default(); + self.target_clip = if !is_clip_removed { value } else { None } } /// Define a local property on the activation.