diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-07-07 14:24:19 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-07-07 14:24:19 +0200 |
commit | 1c48e585747de0a2273c4b3eb4be114d5214b8a2 (patch) | |
tree | 22b5defef1a26a46f1a6a1e7e2cbfc17fcc5bf66 /src/item.c | |
parent | 98922986456010f6c81ff4450aa2914a33ad50dc (diff) |
small fixes
Diffstat (limited to 'src/item.c')
-rw-r--r-- | src/item.c | 2 |
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; |