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/acroBandits.c | |
| parent | 481079092ce272558c887c9563948af0f0fa9d58 (diff) | |
Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL
Diffstat (limited to 'src/enemy/acroBandits.c')
| -rw-r--r-- | src/enemy/acroBandits.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/enemy/acroBandits.c b/src/enemy/acroBandits.c index 9ac33af9..463693f2 100644 --- a/src/enemy/acroBandits.c +++ b/src/enemy/acroBandits.c @@ -84,10 +84,10 @@ void AcroBandit_OnCollision(Entity* this) { brother->iframes = -12; } while (brother = brother->child, brother != NULL); } - if (this->parent) { + if (this->parent != NULL) { this->parent->child = this->child; } else { - if (this->child) + if (this->child != NULL) this->parent = this; } @@ -403,7 +403,7 @@ void AcroBandit_Type1Action3(Entity* this) { this->action = 4; this->direction = sub_08049F84(this, 1); *(u8*)&this->field_0x76 = 0; - if (this->child) { + if (this->child != NULL) { InitializeAnimation(this, 9); } else { InitializeAnimation(this, 8); |
