summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-10-29 22:56:22 -0700
committerGitHub <noreply@github.com>2025-10-30 07:56:22 +0200
commit194282d2c268947588c1b39108ce7e9b0100de91 (patch)
treea1792c066ba2e22e38b6303f193b0b0f8b54cc5a /include/JSystem/J3DGraphBase
parent73927f50a94d85cac09bd31aff71a7ffb5194cbd (diff)
obj_pdwall / obj_rw / obj_stopper2 done (#2760)
* obj_pdwall / obj_rw / obj_stopper2 done * fix jp/pal * Use NULL instead of 0 * Use dEvtCnd_CANDEMO_e --------- Co-authored-by: hatal175 <hatal175@users.noreply.github.com>
Diffstat (limited to 'include/JSystem/J3DGraphBase')
-rw-r--r--include/JSystem/J3DGraphBase/J3DSys.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DSys.h b/include/JSystem/J3DGraphBase/J3DSys.h
index b819dd0793..2de86ef75f 100644
--- a/include/JSystem/J3DGraphBase/J3DSys.h
+++ b/include/JSystem/J3DGraphBase/J3DSys.h
@@ -132,7 +132,11 @@ struct J3DSys {
J3DMatPacket* getMatPacket() { return mMatPacket; }
void setMaterialMode(u32 mode) { mMaterialMode = mode; }
- void setCurrentMtxCalc(J3DMtxCalc * pCalc) { mCurrentMtxCalc = pCalc; }
+ void setCurrentMtxCalc(J3DMtxCalc * pCalc) {
+ J3D_ASSERT_NULLPTR(210, pCalc != NULL);
+ mCurrentMtxCalc = pCalc;
+ }
+
J3DMtxCalc * getCurrentMtxCalc() const { return mCurrentMtxCalc; }
void setTexture(J3DTexture* pTex) { mTexture = pTex; }