From 9cfc34f2ec26d45085d9c4006b21406f8f968ed6 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 29 Mar 2020 08:56:38 -0400 Subject: Address review comments --- src/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script.c') diff --git a/src/script.c b/src/script.c index 8e490811b..13c571bac 100644 --- a/src/script.c +++ b/src/script.c @@ -379,7 +379,7 @@ u8 *mapheader_get_tagged_pointer(u8 tag) void mapheader_run_script_by_tag(u8 tag) { u8 *ptr = mapheader_get_tagged_pointer(tag); - if (ptr) + if (ptr != NULL) ScriptContext2_RunNewScript(ptr); } @@ -387,7 +387,7 @@ u8 *mapheader_get_first_match_from_tagged_ptr_list(u8 tag) { u8 *ptr = mapheader_get_tagged_pointer(tag); - if (!ptr) + if (ptr == NULL) return NULL; while (1) -- cgit v1.2.3