summaryrefslogtreecommitdiff
path: root/src/string_util.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-03-18 15:25:46 -0400
committerGitHub <noreply@github.com>2021-03-18 15:25:46 -0400
commited16a7409ae9c808a110975dec1930f9f949a6d6 (patch)
tree662be8b474b9c50264fc49262cbaf21769479516 /src/string_util.c
parent5075067ecd8718ab96a063946662c71fe3ef5369 (diff)
parentc5aa5d37229e5692355e4b3979b6cafbcad7caee (diff)
Merge pull request #403 from PikalaxALT/battle_multi_buffer
Battle documentation (14032021)
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;
}