summaryrefslogtreecommitdiff
path: root/src/string_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_util.c')
-rw-r--r--src/string_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_util.c b/src/string_util.c
index 17507b0e8..f059ac43d 100644
--- a/src/string_util.c
+++ b/src/string_util.c
@@ -487,7 +487,7 @@ u8 *GetExpandedPlaceholder(u32 id)
[PLACEHOLDER_ID_KYOGRE] = ExpandPlaceholder_Kyogre,
};
- if (id >= ARRAY_COUNT(funcs))
+ if (id >= NELEMS(funcs))
return gExpandedPlaceholder_Empty;
else
return funcs[id]();
@@ -627,7 +627,7 @@ u8 GetExtCtrlCodeLength(u8 code)
};
u8 length = 0;
- if (code < ARRAY_COUNT(lengths))
+ if (code < NELEMS(lengths))
length = lengths[code];
return length;
}