avm2: More lenient SWF version check for invalid frame label behavior

Fixes #11987
This commit is contained in:
nosamu 2023-08-18 05:46:52 -05:00 committed by Nathan Adams
parent 98eb789f21
commit bd82563bb6
1 changed files with 2 additions and 1 deletions

View File

@ -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(