core: Frame scripts should run immediately and not queue
This commit is contained in:
parent
dc499a13a2
commit
e9f8636fe5
|
@ -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(),
|
|
||||||
ActionType::Callable2 {
|
|
||||||
callable,
|
callable,
|
||||||
reciever: Some(avm2_object),
|
Some(avm2_object),
|
||||||
args: Vec::new(),
|
&[],
|
||||||
},
|
context,
|
||||||
false,
|
) {
|
||||||
);
|
log::error!("Error occured when running AVM2 frame script: {}", e);
|
||||||
|
}
|
||||||
|
write = self.0.write(context.gc_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
index += 1;
|
index += 1;
|
||||||
|
|
Loading…
Reference in New Issue