summaryrefslogtreecommitdiff
path: root/src/item.c
diff options
context:
space:
mode:
authorGarak <thomastaps194@comcast.net>2018-07-17 09:24:30 -0400
committerGitHub <noreply@github.com>2018-07-17 09:24:30 -0400
commit5e46a0fcc57d421879c1f65b40b4692bbe65a813 (patch)
tree398b53f56158397a04e0e8de8159e00eeba9acc3 /src/item.c
parente06b63efc9ea39875b17f00e5ff20c2e0fcb0415 (diff)
parent06b3ce408f774c7192202308e783cc22bb8e7643 (diff)
Merge pull request #2 from pret/master
sync with source repo
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;