avm2: More lenient SWF version check for invalid frame label behavior
Fixes #11987
This commit is contained in:
parent
98eb789f21
commit
bd82563bb6
|
@ -392,7 +392,8 @@ pub fn goto_frame<'gc>(
|
|||
}
|
||||
|
||||
let frame = mc.frame_label_to_number(&frame_or_label, &activation.context);
|
||||
if mc.movie().version() >= 11 {
|
||||
// TODO: This should use the SWF version of the current DoAbc(2) tag. Until then, let's be lenient
|
||||
if mc.movie().version() >= 11 && activation.context.swf.version() >= 11 {
|
||||
frame.ok_or(
|
||||
// TODO: Also include the scene in the error message, as done above
|
||||
Error::AvmError(argument_error(
|
||||
|
|
Loading…
Reference in New Issue