Replace menu_cloth_class size calculation with sizeof(dMCloth_c) in d_menu_cloth.

This commit is contained in:
Briggs Baltzell
2026-03-09 17:45:39 -05:00
parent 153ee490bf
commit 3920b07e1a
+1 -6
View File
@@ -961,11 +961,6 @@ static BOOL dMenu_ClothIsDelete(void*) {
return TRUE;
}
// TODO: Find superclass that gives the correct size of 0x929C.
class menu_cloth_class : public fopAc_ac_c {
dMCloth_c mCloth;
};
// BUG: The functions in this table are out of order.
// It doesn't really matter, because they're just empty functions.
static msg_method_class dMenu_ClothMethodTable = {
@@ -982,7 +977,7 @@ msg_process_profile_definition g_profile_Menu_Cloth = {
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Menu_Cloth,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ 0x929C, // TODO: sizeof(menu_cloth_class)
/* Size */ sizeof(dMCloth_c),
/* SizeOther */ 0,
/* Parameters */ 0,
/* Leaf SubMtd */ &g_fopMsg_Method,