summaryrefslogtreecommitdiff
path: root/src/emap/parse.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-23 21:38:21 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-23 21:38:21 +0300
commit3c0e3838f77a62a69130d7b2674e21e2133a7f83 (patch)
tree6f3ff1583e69e5ded625af59a78cbd5568acef51 /src/emap/parse.c
parent637fcbc9c0f4b042b38f9e900d08aee521305991 (diff)
downloadplugin-3c0e3838f77a62a69130d7b2674e21e2133a7f83.tar.gz
plugin-3c0e3838f77a62a69130d7b2674e21e2133a7f83.tar.bz2
plugin-3c0e3838f77a62a69130d7b2674e21e2133a7f83.tar.xz
plugin-3c0e3838f77a62a69130d7b2674e21e2133a7f83.zip
Update from herculess20190211
Diffstat (limited to 'src/emap/parse.c')
-rw-r--r--src/emap/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/parse.c b/src/emap/parse.c
index 299772e..833fe9c 100644
--- a/src/emap/parse.c
+++ b/src/emap/parse.c
@@ -239,7 +239,7 @@ void map_clif_parse_useitem2(int fd)
// Whether the item is used or not is irrelevant, the char ain't idle. [Skotlex]
pc->update_idle_time(sd, BCIDLE_USEITEM);
const int n = RFIFOW(fd, 2) - 2;
- if (n < 0 || n >= MAX_INVENTORY)
+ if (n < 0 || n >= sd->status.inventorySize)
return;
struct item_data *item = itemdb->exists(sd->inventory_data[n]->nameid);