Add STATIC_ASSERT checks for struct size validation in d_menu_cloth.

This commit is contained in:
Briggs Baltzell
2026-03-09 17:33:25 -05:00
parent 0073467680
commit 8aa7121964
+6
View File
@@ -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 */