From f9d40ebad822d9d873e05f0fbe52990dc538179e Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sat, 22 Jun 2024 11:07:16 -0400 Subject: Use NULL macro in asserts, fix NULL macro to match --- src/d/actor/d_a_obj_barrier.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/d/actor/d_a_obj_barrier.cpp') diff --git a/src/d/actor/d_a_obj_barrier.cpp b/src/d/actor/d_a_obj_barrier.cpp index 4cb976e4..ece99613 100644 --- a/src/d/actor/d_a_obj_barrier.cpp +++ b/src/d/actor/d_a_obj_barrier.cpp @@ -299,8 +299,8 @@ void daObjBarrier_ef_c::setDummyTexture(int i_idx) { J3DTexture* texture = modelData->getTexture(); JUTNameTab* textureName = modelData->getTextureName(); - JUT_ASSERT(808, texture != 0); - JUT_ASSERT(809, textureName != 0); + JUT_ASSERT(808, texture != NULL); + JUT_ASSERT(809, textureName != NULL); for (u16 i = 0; i < texture->getNum(); i++) { if (strcmp(textureName->getName(i), "__dummy") == 0) { @@ -375,13 +375,13 @@ void daObjBarrier_ef_c::birth(fopAc_ac_c* i_hitActor, f32 i_radius, cXyz i_cente J3DModelData* modelData = mpModel[effect_idx]->getModelData(); J3DAnmTextureSRTKey* btk_anm_p = static_cast(dComIfG_getObjectRes(l_arcname, YCAGE_BTK_YHRBR00)); - JUT_ASSERT(937, btk_anm_p != 0); + JUT_ASSERT(937, btk_anm_p != NULL); J3DAnmTransform* bck_anm_p = static_cast(dComIfG_getObjectRes(l_arcname, YCAGE_BCK_YHRBR00)); - JUT_ASSERT(942, bck_anm_p != 0); + JUT_ASSERT(942, bck_anm_p != NULL); J3DAnmTevRegKey* brk_anm_p = static_cast(dComIfG_getObjectRes(l_arcname, YCAGE_BRK_YHRBR00)); - JUT_ASSERT(947, brk_anm_p != 0); + JUT_ASSERT(947, brk_anm_p != NULL); mBtk[effect_idx].init(modelData, btk_anm_p, TRUE, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, 0, -1, true, 0); -- cgit v1.2.3