From bf6b491bd15a188f8b3807d13bbf0ef6bfa27640 Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Tue, 3 Feb 2026 22:16:53 -0600 Subject: [PATCH] Match dMCloth_c::dMCloth_c --- include/d/d_menu_cloth.h | 2 +- src/d/d_menu_cloth.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/d/d_menu_cloth.h b/include/d/d_menu_cloth.h index 0253eb454..aa180265b 100644 --- a/include/d/d_menu_cloth.h +++ b/include/d/d_menu_cloth.h @@ -99,7 +99,7 @@ public: virtual ~daCLOTH_HIO_c(); public: - /* 0x0004 */ s8 field_0x4; + /* 0x0004 */ s8 mNo; /* 0x0008 */ daCLOTH_ChildHIO_c mChildren[3]; }; diff --git a/src/d/d_menu_cloth.cpp b/src/d/d_menu_cloth.cpp index cfca9c92a..6d826216f 100644 --- a/src/d/d_menu_cloth.cpp +++ b/src/d/d_menu_cloth.cpp @@ -12,7 +12,7 @@ static daCLOTH_HIO_c l_HIO; /* 8019940C-8019966C .text __ct__13daCLOTH_HIO_cFv */ daCLOTH_HIO_c::daCLOTH_HIO_c() { - field_0x4 = -1; + mNo = -1; { mChildren[0].field_0x4 = 1.78f; @@ -139,11 +139,12 @@ void dMCloth_c::init() { /* 80199E1C-80199F48 .text __ct__9dMCloth_cFv */ dMCloth_c::dMCloth_c() { - /* Nonmatching */ field_0x913c = 0; - field_0x4 = 4; + field_0x4 = 0; mClothType = 0; - mDoHIO_createChild("メニューの布", &l_HIO); + if (l_HIO.mNo < 0) { + l_HIO.mNo = mDoHIO_createChild("メニューの布", &l_HIO); // Menu cloth + } } /* 80199F48-8019A058 .text __dt__9dMCloth_cFv */