From 3f5582ed9464f5f1d85317663220e71c4a7ff91c Mon Sep 17 00:00:00 2001 From: turicfr Date: Sat, 13 Apr 2024 13:25:37 +0300 Subject: [PATCH] avm1: Correct `getBounds` properties order This affects the order of the properties when enumerating the returned object (via `Enumerate2` etc.) --- core/src/avm1/globals/movie_clip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/avm1/globals/movie_clip.rs b/core/src/avm1/globals/movie_clip.rs index 2270d9174..797326726 100644 --- a/core/src/avm1/globals/movie_clip.rs +++ b/core/src/avm1/globals/movie_clip.rs @@ -1506,8 +1506,8 @@ fn get_bounds<'gc>( Some(activation.context.avm1.prototypes().object), ); out.set("xMin", out_bounds.x_min.to_pixels().into(), activation)?; - out.set("yMin", out_bounds.y_min.to_pixels().into(), activation)?; out.set("xMax", out_bounds.x_max.to_pixels().into(), activation)?; + out.set("yMin", out_bounds.y_min.to_pixels().into(), activation)?; out.set("yMax", out_bounds.y_max.to_pixels().into(), activation)?; Ok(out.into()) } else {