diff options
| author | Elliptic Ellipsis <elliptic.ellipsis@gmail.com> | 2022-03-25 05:34:53 +0000 |
|---|---|---|
| committer | Elliptic Ellipsis <elliptic.ellipsis@gmail.com> | 2022-03-25 05:35:12 +0000 |
| commit | 2d37348cb6994f6fe20a0ffbc2ee2d87bd7447a2 (patch) | |
| tree | c43ce69da5d2e1fe8744d0a54a3a9650de6f20d1 /src/enemy/sluggula.c | |
| parent | 481079092ce272558c887c9563948af0f0fa9d58 (diff) | |
Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL
Diffstat (limited to 'src/enemy/sluggula.c')
| -rw-r--r-- | src/enemy/sluggula.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/enemy/sluggula.c b/src/enemy/sluggula.c index 06d27af1..759a3c5c 100644 --- a/src/enemy/sluggula.c +++ b/src/enemy/sluggula.c @@ -132,7 +132,7 @@ void sub_08023CE0(Entity* this) { if (this->frame) { if (this->frame & ANIM_DONE) { Entity* ent = CreateEnemy(SLUGGULA, 1); - if (ent) { + if (ent != NULL) { sub_0804A4E4(this, ent); DeleteThisEntity(); } @@ -163,7 +163,7 @@ void sub_08023E54(Entity* this) { if (this->field_0xf++ > 27) { this->field_0xf = 0; ent = CreateEnemy(SLUGGULA, 2); - if (ent) { + if (ent != NULL) { const s8* ptr = &gUnk_080CBDF7[this->animationState * 2]; PositionRelative(this, ent, Q_16_16(ptr[0]), Q_16_16(ptr[1])); } |
