core: Change some uses of Avm1Activation::from_stub to from_nothing

This commit is contained in:
Lord-McSweeney 2023-05-10 18:22:38 -07:00 committed by Lord-McSweeney
parent 43fdd30fc1
commit fd538915b3
1 changed files with 2 additions and 1 deletions

View File

@ -213,9 +213,10 @@ impl<'gc> Avm1Button<'gc> {
default: bool,
) -> bool {
if let Value::Object(object) = self.object() {
let mut activation = Activation::from_stub(
let mut activation = Activation::from_nothing(
context.reborrow(),
ActivationIdentifier::root("[AVM1 Boolean Property]"),
self.avm1_root(),
);
if let Ok(value) = object.get(name, &mut activation) {
match value {