summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-03-29 08:56:38 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-03-29 08:56:38 -0400
commit9cfc34f2ec26d45085d9c4006b21406f8f968ed6 (patch)
treeec15c56d3b09c2cec74ac907110c9111e18e8729 /src/script.c
parenta027218bc68f3951e438da078419aaa09048c885 (diff)
Address review comments
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c4
1 files changed, 2 insertions, 2 deletions
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)