summaryrefslogtreecommitdiff
path: root/libs/JSystem/src/J2DGraph/J2DMatBlock.cpp
diff options
context:
space:
mode:
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>2026-04-11 19:28:01 +0200
committerGitHub <noreply@github.com>2026-04-11 11:28:01 -0600
commit9b900a1a55f82e1d1140acba2c6f6317522d2590 (patch)
treeb5434449faa8d2a4847f907e1e3b85e6c4c85c39 /libs/JSystem/src/J2DGraph/J2DMatBlock.cpp
parent472af2590a57510a565de4f13beeaa88500cc4a6 (diff)
UB fixes (#3150)
* Fix incorrect size for J2DTevBlock8::insertTexture local_38 * Fix dMeter_drawOptionHIO_c mOptionTypeBGPosX/Y size * dMeter_drawLightDropHIO_c mVesselAlpha fix * d_a_mg_rod array size fixes * Fix e_tk2_class mActionTimer array size * daObjTOMBO_c field_0x714 array size fix
Diffstat (limited to 'libs/JSystem/src/J2DGraph/J2DMatBlock.cpp')
-rw-r--r--libs/JSystem/src/J2DGraph/J2DMatBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/JSystem/src/J2DGraph/J2DMatBlock.cpp b/libs/JSystem/src/J2DGraph/J2DMatBlock.cpp
index 1bf28751ac..ce26719e72 100644
--- a/libs/JSystem/src/J2DGraph/J2DMatBlock.cpp
+++ b/libs/JSystem/src/J2DGraph/J2DMatBlock.cpp
@@ -1416,7 +1416,7 @@ bool J2DTevBlock8::insertTexture(u32 param_0, ResTIMG const* p_timg, JUTPalette*
} else {
texture->storeTIMG(p_timg, p_tlut);
}
- bool local_38[4];
+ bool local_38[8];
for (u8 i = 0; i < 8; i++) {
local_38[i] = (mUndeleteFlag & 1 << i) != 0;
}