summaryrefslogtreecommitdiff
path: root/src/object/object49.c
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/object/object49.c
parent481079092ce272558c887c9563948af0f0fa9d58 (diff)
Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL
Diffstat (limited to 'src/object/object49.c')
-rw-r--r--src/object/object49.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object/object49.c b/src/object/object49.c
index 1b74b298..4eca5e6e 100644
--- a/src/object/object49.c
+++ b/src/object/object49.c
@@ -195,7 +195,7 @@ void sub_0808F3DC(Entity* this) {
if (this->type == 5 && (this->frame & 1)) {
Entity* entity = CreateObjectWithParent(this->child, 0x49, 8, 0);
- if (entity) {
+ if (entity != NULL) {
entity->parent = this->parent;
entity->child = this->parent->parent;
}
@@ -262,19 +262,19 @@ void sub_0808F554(Entity* this) {
void sub_0808F5EC(Entity* this) {
Entity* entity = CreateObjectWithParent(this->child, 0x49, 5, 0);
- if (entity) {
+ if (entity != NULL) {
entity->parent = this;
entity->child = this->child;
}
entity = CreateObjectWithParent(this->child, 0x49, 6, 0);
- if (entity) {
+ if (entity != NULL) {
entity->parent = this;
entity->child = this->child;
}
entity = CreateObjectWithParent(this->child, 0x49, 7, 0);
- if (entity) {
+ if (entity != NULL) {
entity->parent = this;
entity->child = this->child;
}