From 8aa7121964da45f01fa7b51bfd7890c4f98a9a68 Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Mon, 9 Mar 2026 17:33:25 -0500 Subject: [PATCH] Add `STATIC_ASSERT` checks for struct size validation in `d_menu_cloth`. --- include/d/d_menu_cloth.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/d/d_menu_cloth.h b/include/d/d_menu_cloth.h index 5baaef0fb..2e0fa29fe 100644 --- a/include/d/d_menu_cloth.h +++ b/include/d/d_menu_cloth.h @@ -79,6 +79,8 @@ public: /* 0x9162 */ GXColor mShadowColor; }; +STATIC_ASSERT(sizeof(dMCloth_c) == 0x9168); + class daCLOTH_ChildHIO_c { public: daCLOTH_ChildHIO_c(); @@ -105,6 +107,8 @@ public: /* 0x0054 */ f32 maxStep; }; +STATIC_ASSERT(sizeof(daCLOTH_ChildHIO_c) == 0x58); + class daCLOTH_HIO_c : public JORReflexible { public: daCLOTH_HIO_c(); @@ -115,4 +119,6 @@ public: /* 0x0008 */ daCLOTH_ChildHIO_c mChildren[3]; }; +STATIC_ASSERT(sizeof(daCLOTH_HIO_c) == 0x110); + #endif /* D_MENU_CLOTH_H */