diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-06 21:27:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:20 +0300 |
commit | 9cada287c3d2f4ddfb83da8e37c725212fd9bbf9 (patch) | |
tree | a49d01e735139e20f4dd0de51a9b92251a0ba81b /src/map/clif.c | |
parent | e0e674ad0668314da6c3125c9a951f13a27bebe4 (diff) | |
download | hercules-9cada287c3d2f4ddfb83da8e37c725212fd9bbf9.tar.gz hercules-9cada287c3d2f4ddfb83da8e37c725212fd9bbf9.tar.bz2 hercules-9cada287c3d2f4ddfb83da8e37c725212fd9bbf9.tar.xz hercules-9cada287c3d2f4ddfb83da8e37c725212fd9bbf9.zip |
Update packet ZC_CASH_ITEM_DELETE.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 6b47e0ce9..eda4b933b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17020,11 +17020,13 @@ static void clif_rental_time(int fd, int nameid, int seconds) /// 0299 <index>.W <name id>.W static void clif_rental_expired(int fd, int index, int nameid) { // '<ItemName>' item has been deleted from the Inventory - WFIFOHEAD(fd,packet_len(0x299)); - WFIFOW(fd,0) = 0x299; - WFIFOW(fd,2) = index+2; - WFIFOW(fd,4) = nameid; - WFIFOSET(fd,packet_len(0x299)); + struct PACKET_ZC_CASH_ITEM_DELETE p; + WFIFOHEAD(fd, sizeof(p)); + p.packetType = 0x299; + p.index = index + 2; + p.itemId = nameid; + memcpy(WFIFOP(fd, 0), &p, sizeof(p)); + WFIFOSET(fd, sizeof(p)); } /// Book Reading (ZC_READ_BOOK). |