Skip to content

Commit

Permalink
core: Mark DisplayObject as non-removed when added to display list
Browse files Browse the repository at this point in the history
An AVM2 movie can repeatedly remove and add a DisplayObject from/to
a parent. This was causing SolarMax to stop working after advancing
to the next level.
  • Loading branch information
Aaron1011 committed Sep 8, 2022
1 parent 7ec5873 commit c090fe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/display_object/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ macro_rules! impl_display_object_container {

child.set_place_frame(context.gc_context, 0);
child.set_parent(context.gc_context, Some((*self).into()));
child.set_removed(context.gc_context, false);

self.0
.write(context.gc_context)
Expand Down

0 comments on commit c090fe3

Please sign in to comment.