From 3920b07e1ab3a757b87d490bc0861d346ac8c742 Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Mon, 9 Mar 2026 17:45:39 -0500 Subject: [PATCH] Replace `menu_cloth_class` size calculation with `sizeof(dMCloth_c)` in `d_menu_cloth`. --- src/d/d_menu_cloth.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/d/d_menu_cloth.cpp b/src/d/d_menu_cloth.cpp index 1b2c7815a..0148eead7 100644 --- a/src/d/d_menu_cloth.cpp +++ b/src/d/d_menu_cloth.cpp @@ -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,