summaryrefslogtreecommitdiff
path: root/src/item.c
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2018-07-16 13:35:17 -0700
committerGitHub <noreply@github.com>2018-07-16 13:35:17 -0700
commit06b3ce408f774c7192202308e783cc22bb8e7643 (patch)
tree68390ab7335854c9c0721192ec4b8d563d0a48fe /src/item.c
parent07ef76277021d5cddf14004e37e785c31fcea69b (diff)
parent118fa3afcee68deb3eeb2bc876a9afd02a45677c (diff)
Merge pull request #272 from DizzyEggg/final_battle_files_touches
Thoroughly document and label battle files
Diffstat (limited to 'src/item.c')
-rw-r--r--src/item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.c b/src/item.c
index 30710d08a..c94f29910 100644
--- a/src/item.c
+++ b/src/item.c
@@ -1024,7 +1024,7 @@ bool8 RemovePyramidBagItem(u16 itemId, u16 count)
static u16 SanitizeItemId(u16 itemId)
{
- if (itemId >= ITEM_LAST_ID + 1)
+ if (itemId >= ITEMS_COUNT)
return ITEM_NONE;
else
return itemId;