diff --git a/core/build_playerglobal/src/lib.rs b/core/build_playerglobal/src/lib.rs index 4294dae62..b2f79c6f4 100644 --- a/core/build_playerglobal/src/lib.rs +++ b/core/build_playerglobal/src/lib.rs @@ -272,13 +272,13 @@ fn write_native_table(data: &[u8], out_dir: &Path) -> Result, Box Result, Box { // This results in a path of the form // `crate::avm2::globals::::` - rust_instance_allocators[class_id as usize - 1] = + rust_instance_allocators[class_id as usize] = rust_method_path(&abc, trait_, None, "", &method_name); } _ => panic!("Unexpected metadata pair ({:?}, {})", key, value),