core: Child removals appear to resolve in reverse render order.

This commit is contained in:
David Wendt 2022-05-01 17:16:12 -04:00 committed by kmeisthax
parent 8feb3fc7b0
commit d691543c4c
1 changed files with 2 additions and 1 deletions

View File

@ -1952,7 +1952,8 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
}
fn enter_frame(&self, context: &mut UpdateContext<'_, 'gc, '_>) {
for child in self.iter_render_list() {
//Child removals from looping gotos appear to resolve in reverse order.
for child in self.iter_render_list().rev() {
child.enter_frame(context);
}