diff --git a/core/src/avm2.rs b/core/src/avm2.rs index c01d17332..f715fe91e 100644 --- a/core/src/avm2.rs +++ b/core/src/avm2.rs @@ -439,6 +439,7 @@ impl<'gc> Avm2<'gc> { Op::PushTrue => self.op_push_true(), Op::PushUint { value } => self.op_push_uint(value), Op::PushUndefined => self.op_push_undefined(), + Op::Pop => self.op_pop(), Op::Dup => self.op_dup(), Op::GetLocal { index } => self.op_get_local(index), Op::SetLocal { index } => self.op_set_local(context, index), @@ -580,6 +581,12 @@ impl<'gc> Avm2<'gc> { Ok(()) } + fn op_pop(&mut self) -> Result<(), Error> { + self.pop(); + + Ok(()) + } + fn op_dup(&mut self) -> Result<(), Error> { self.push(self.stack.last().cloned().unwrap_or(Value::Undefined));