avm2: Use proper slot type for `TraitKind::Class`

This commit is contained in:
Lord-McSweeney 2024-06-20 12:50:28 -07:00 committed by Lord-McSweeney
parent e222a1646c
commit efbaf6a0b0
1 changed files with 2 additions and 2 deletions

View File

@ -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!(),