summaryrefslogtreecommitdiff
path: root/src/object/pot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/pot.c')
-rw-r--r--src/object/pot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/pot.c b/src/object/pot.c
index 22ee8ce0..a11c6d4d 100644
--- a/src/object/pot.c
+++ b/src/object/pot.c
@@ -283,7 +283,7 @@ u32 sub_0808288C(Entity* this, u32 form, u32 arg2, u32 arg3) {
break;
default:
entity = CreateObjectWithParent(this, GROUND_ITEM, form, arg2);
- if (entity) {
+ if (entity != NULL) {
if (arg3 == 2) {
entity->actionDelay = 5;
entity->field_0x86.HWORD = this->field_0x86.HWORD;