From efbaf6a0b0391bdf5119ccd68990dc306c6e2ec6 Mon Sep 17 00:00:00 2001 From: Lord-McSweeney Date: Thu, 20 Jun 2024 12:50:28 -0700 Subject: [PATCH] avm2: Use proper slot type for `TraitKind::Class` --- core/src/avm2/vtable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/avm2/vtable.rs b/core/src/avm2/vtable.rs index bc4563eab..3094597c9 100644 --- a/core/src/avm2/vtable.rs +++ b/core/src/avm2/vtable.rs @@ -470,10 +470,10 @@ impl<'gc> VTable<'gc> { Property::new_const_slot(new_slot_id), PropertyClass::name(context.gc_context, type_name.clone(), *unit), ), - TraitKind::Class { .. } => ( + TraitKind::Class { class, .. } => ( Property::new_const_slot(new_slot_id), PropertyClass::Class( - context.avm2.classes().class.inner_class_definition(), + class.c_class().expect("Trait should hold an i_class"), ), ), _ => unreachable!(),