Fix daE_FB_c::mKeys array size on PC (#3151)

This commit is contained in:
Howard Luck
2026-04-11 13:52:48 -06:00
committed by GitHub
parent 1779734b12
commit 63d68e9b1d
+6
View File
@@ -71,10 +71,16 @@ private:
/* 0xA30 */ dCcD_Sph mSphere2;
/* 0xB68 */ dCcD_Sph mAtSph;
/* 0xCA0 */ dCcU_AtInfo mAtInfo;
#if AVOID_UB
/* 0xCC4 */ u32 mKeys[8];
/* 0xCE4 */ u8 mHIOInit;
/* 0xCE5 */ u8 field_0xce5[0xCE8 - 0xCE5];
#else
// !@bug Seems that the orig developers didn't size mKeys correctly, as ideally it should be len=8, not len=7:
/* 0xCC4 */ u32 mKeys[7];
/* 0xCE0 */ u8 mHIOInit;
/* 0xCE1 */ u8 field_0xce1[0xCE8 - 0xCE1];
#endif
};
STATIC_ASSERT(sizeof(daE_FB_c) == 0xce8);