summaryrefslogtreecommitdiff
path: root/src/string_util.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-14 16:29:33 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-14 16:29:33 -0400
commit99ec579debc63991f16e08ef906111ad556edad5 (patch)
tree7ef44e3452d21432ad640270d7b6a9c6a15fe97c /src/string_util.c
parent75b9fbc92fbe5edbf8dbdd647585d3d94adb33d1 (diff)
Name symbols in battle_anim_special.c
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;
}