core: Always clear the `EXECUTING_AVM2_FRAME_SCRIPT` flag, even if we didn't actually execute frames.

Prior to this commit, executing frame scripts on a movie that doesn't have them for this frame, or didn't advance to a new frame, would cause the the movie to ignore all gotos until the next time it ran a frame script.
This commit is contained in:
David Wendt 2022-01-08 15:33:32 -05:00 committed by Mike Welsh
parent eaeecfcfbc
commit 85d98d8c07
1 changed files with 4 additions and 3 deletions

View File

@ -1820,14 +1820,15 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
log::error!("Error occured when running AVM2 frame script: {}", e); log::error!("Error occured when running AVM2 frame script: {}", e);
} }
write = self.0.write(context.gc_context); write = self.0.write(context.gc_context);
write
.flags
.remove(MovieClipFlags::EXECUTING_AVM2_FRAME_SCRIPT);
} }
index += 1; index += 1;
} }
} }
write
.flags
.remove(MovieClipFlags::EXECUTING_AVM2_FRAME_SCRIPT);
} }
} }