summaryrefslogtreecommitdiff
path: root/src/npc
diff options
context:
space:
mode:
authorElliptic Ellipsis <elliptic.ellipsis@gmail.com>2022-03-25 05:34:53 +0000
committerElliptic Ellipsis <elliptic.ellipsis@gmail.com>2022-03-25 05:35:12 +0000
commit2d37348cb6994f6fe20a0ffbc2ee2d87bd7447a2 (patch)
treec43ce69da5d2e1fe8744d0a54a3a9650de6f20d1 /src/npc
parent481079092ce272558c887c9563948af0f0fa9d58 (diff)
Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL
Diffstat (limited to 'src/npc')
-rw-r--r--src/npc/castorWildsStatue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/npc/castorWildsStatue.c b/src/npc/castorWildsStatue.c
index 9d5e8567..5c853371 100644
--- a/src/npc/castorWildsStatue.c
+++ b/src/npc/castorWildsStatue.c
@@ -127,7 +127,7 @@ void sub_080675D4(Entity* this) {
for (i = 0; i < 9; i++, gUnk++) {
Entity* ent = CreateFx(this, FX_DEATH, 0);
- if (ent) {
+ if (ent != NULL) {
ent->x.HALF.HI += gUnk->x;
ent->y.HALF.HI += gUnk->y;
ent->z.HALF.HI = subAction;
@@ -140,7 +140,7 @@ void sub_080675D4(Entity* this) {
gUnk = gUnk_08110E8A;
for (i = 0; i < 4; i++, gUnk++) {
Entity* ent = CreateFx(this, FX_ROCK, 0);
- if (ent) {
+ if (ent != NULL) {
ent->x.HALF.HI = gUnk->x + ent->x.HALF.HI;
ent->y.HALF.HI = gUnk->y + ent->y.HALF.HI;
ent->z.HALF.HI = subAction;