diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-08 20:32:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-19 22:24:50 +0300 |
commit | 1243ccae245b12134f841703957221c3157dda9a (patch) | |
tree | 5e7717d020c71eff1295cf5457582881163062a2 /src/map/clif.c | |
parent | 3e6199fd739d811fdc15139ce4743fa4596c5473 (diff) | |
download | hercules-1243ccae245b12134f841703957221c3157dda9a.tar.gz hercules-1243ccae245b12134f841703957221c3157dda9a.tar.bz2 hercules-1243ccae245b12134f841703957221c3157dda9a.tar.xz hercules-1243ccae245b12134f841703957221c3157dda9a.zip |
Fix packet ZC_INVENTORY_MOVE_FAILED (fixes #2213)
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 77d072d20..b36efd3f2 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2641,7 +2641,7 @@ static void clif_item_movefailed(struct map_session_data *sd, int n) WFIFOHEAD(fd, len); struct PACKET_ZC_INVENTORY_MOVE_FAILED *p = WFIFOP(fd, 0); p->packetType = 0xaa7; - p->index = n; + p->index = n + 2; p->unknown = 1; WFIFOSET(fd, len); #else @@ -11131,7 +11131,7 @@ static void clif_parse_DropItem(int fd, struct map_session_data *sd) } //Because the client does not like being ignored. - clif->item_movefailed(sd, item_index); + clif->dropitem(sd, item_index, 0); } static void clif_parse_UseItem(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); |