avm2: Fix hittests on depth=0 children

This commit is contained in:
CUB3D 2022-12-10 03:52:58 +00:00 committed by kmeisthax
parent 5b1d4d071d
commit f1401d6837
1 changed files with 1 additions and 1 deletions

View File

@ -2491,7 +2491,7 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
} else {
clip_depth = child.clip_depth();
}
} else if child.depth() > clip_depth
} else if child.depth() >= clip_depth
&& child.hit_test_shape(context, point, options)
{
return true;