diff --git a/core/src/avm1/object.rs b/core/src/avm1/object.rs index 43f3596de..b896b1373 100644 --- a/core/src/avm1/object.rs +++ b/core/src/avm1/object.rs @@ -117,7 +117,7 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into> + Clone + Copy /// Takes an already existing object and performs this constructor (if valid) on it. fn construct_on_existing( &self, - activation: &mut Activation<'_, 'gc, '_>, + _activation: &mut Activation<'_, 'gc, '_>, mut _this: Object<'gc>, _args: &[Value<'gc>], ) -> Result<(), Error<'gc>> { diff --git a/core/src/display_object/movie_clip.rs b/core/src/display_object/movie_clip.rs index b77a363c7..7e1cf3a6d 100644 --- a/core/src/display_object/movie_clip.rs +++ b/core/src/display_object/movie_clip.rs @@ -1159,7 +1159,7 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> { } } } - self.0.write(context.gc_context).object = Some(object); + self.0.write(activation.context.gc_context).object = Some(object); let _ = constructor.construct_on_existing(&mut activation, object, &[]); }