summaryrefslogtreecommitdiff
path: root/src/object/button.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/button.c
parent481079092ce272558c887c9563948af0f0fa9d58 (diff)
Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL
Diffstat (limited to 'src/object/button.c')
-rw-r--r--src/object/button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/button.c b/src/object/button.c
index 5a29e636..d4f602ba 100644
--- a/src/object/button.c
+++ b/src/object/button.c
@@ -242,7 +242,7 @@ u32 sub_08081F7C(Entity* this, u32 r7) {
if (this->actionDelay == 0)
return 1;
if (--this->actionDelay > 6) {
- if (this->child)
+ if (this->child != NULL)
this->child->spriteOffsetY = -4;
} else {
if (this->actionDelay == 6) {