From 2d37348cb6994f6fe20a0ffbc2ee2d87bd7447a2 Mon Sep 17 00:00:00 2001 From: Elliptic Ellipsis Date: Fri, 25 Mar 2022 05:34:53 +0000 Subject: Fix a lot of pointer comparisons to 0 (or nothing) to explicitly use NULL --- src/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script.c') diff --git a/src/script.c b/src/script.c index 8fb780b8..1bdf1468 100644 --- a/src/script.c +++ b/src/script.c @@ -349,7 +349,7 @@ void ExecuteScriptForEntity(Entity* entity, void (*postScriptCallback)(Entity*, } else { HandlePostScriptActions(entity, *piVar1); } - if (!entity->next) { + if (entity->next == NULL) { DeleteThisEntity(); } } -- cgit v1.2.3