diff --git a/core/src/avm1/activation.rs b/core/src/avm1/activation.rs index 8dc1ec3b0..9311664ee 100644 --- a/core/src/avm1/activation.rs +++ b/core/src/avm1/activation.rs @@ -576,7 +576,7 @@ impl<'a, 'gc> Activation<'a, 'gc> { }; let b = if let Value::MovieClip(_, _) = b { - a.coerce_to_string(self)?.into() + b.coerce_to_string(self)?.into() } else { b }; diff --git a/core/src/avm1/value.rs b/core/src/avm1/value.rs index e52f748c2..55699b55a 100644 --- a/core/src/avm1/value.rs +++ b/core/src/avm1/value.rs @@ -417,7 +417,7 @@ impl<'gc> Value<'gc> { Value::MovieClip(path, mc) => { if let Some(mc) = mc.upgrade(activation.context.gc_context) { if !mc.read().display_object.removed() - | mc.read().display_object.pending_removal() + || mc.read().display_object.pending_removal() { // Note that we can't re-use the `path` from the value above sadly, it would be quicker if we could // But if the clip has been re-named, since being created then `mc.path() != path` @@ -509,7 +509,7 @@ impl<'gc> Value<'gc> { if let Value::MovieClip(path, mc) = self { // Check if we can re-use the cached `DisplayObject`, if we can then take this fast path if let Some(mc) = mc.upgrade(activation.context.gc_context) { - if !mc.read().display_object.removed() || mc.read().display_object.pending_removal() + if !mc.read().display_object.removed() || mc.read().display_object.pending_removal() { return mc .read()