Further adjustments that fell through before.
This commit is contained in:
parent
4dbd26807e
commit
8cb6e4af39
|
@ -117,7 +117,7 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into<Object<'gc>> + Clone + Copy
|
||||||
/// Takes an already existing object and performs this constructor (if valid) on it.
|
/// Takes an already existing object and performs this constructor (if valid) on it.
|
||||||
fn construct_on_existing(
|
fn construct_on_existing(
|
||||||
&self,
|
&self,
|
||||||
activation: &mut Activation<'_, 'gc, '_>,
|
_activation: &mut Activation<'_, 'gc, '_>,
|
||||||
mut _this: Object<'gc>,
|
mut _this: Object<'gc>,
|
||||||
_args: &[Value<'gc>],
|
_args: &[Value<'gc>],
|
||||||
) -> Result<(), Error<'gc>> {
|
) -> Result<(), Error<'gc>> {
|
||||||
|
|
|
@ -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, &[]);
|
let _ = constructor.construct_on_existing(&mut activation, object, &[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue