diff --git a/core/src/avm2/globals/flash/geom/rectangle.rs b/core/src/avm2/globals/flash/geom/rectangle.rs index 285a059ae..a2573b4c2 100644 --- a/core/src/avm2/globals/flash/geom/rectangle.rs +++ b/core/src/avm2/globals/flash/geom/rectangle.rs @@ -383,7 +383,7 @@ fn contains_tuple<'gc>( let top = get_prop!(*this, activation, "y")?; let bottom = get_prop!(*this, activation, "height")? + top; - return Ok(left <= x && x < right && top <= y && y < bottom); + Ok(left <= x && x < right && top <= y && y < bottom) } /// Implement `contains`