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:
parent
eaeecfcfbc
commit
85d98d8c07
|
@ -1820,14 +1820,15 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
|
|||
log::error!("Error occured when running AVM2 frame script: {}", e);
|
||||
}
|
||||
write = self.0.write(context.gc_context);
|
||||
write
|
||||
.flags
|
||||
.remove(MovieClipFlags::EXECUTING_AVM2_FRAME_SCRIPT);
|
||||
}
|
||||
|
||||
index += 1;
|
||||
}
|
||||
}
|
||||
|
||||
write
|
||||
.flags
|
||||
.remove(MovieClipFlags::EXECUTING_AVM2_FRAME_SCRIPT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue