core: Frame scripts should run immediately and not queue

This commit is contained in:
David Wendt 2021-02-04 22:29:35 -05:00 committed by Mike Welsh
parent dc499a13a2
commit e9f8636fe5
1 changed files with 10 additions and 10 deletions

View File

@ -1765,16 +1765,16 @@ impl<'gc> TDisplayObject<'gc> for MovieClip<'gc> {
while let Some(fs) = write.frame_scripts.get(index) { while let Some(fs) = write.frame_scripts.get(index) {
if fs.frame_id == frame_id { if fs.frame_id == frame_id {
let callable = fs.callable; let callable = fs.callable;
drop(write);
context.action_queue.queue_actions( if let Err(e) = Avm2::run_stack_frame_for_callable(
self.into(), callable,
ActionType::Callable2 { Some(avm2_object),
callable, &[],
reciever: Some(avm2_object), context,
args: Vec::new(), ) {
}, log::error!("Error occured when running AVM2 frame script: {}", e);
false, }
); write = self.0.write(context.gc_context);
} }
index += 1; index += 1;