diff options
author | Haru <haru@dotalux.com> | 2019-05-08 00:59:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-08 00:59:00 +0200 |
commit | 50676ff620ab9774d1b16d6646ec448dd0877c90 (patch) | |
tree | 6e7c0c0b37d36b893b5f126797a15e383347e737 /src/map/clif.c | |
parent | 6546beefaa8d3cb6141e2414396b0dbca6eb5d15 (diff) | |
parent | 2ab0e1c614d461885c2a2eafc2005fca723d0853 (diff) | |
download | hercules-50676ff620ab9774d1b16d6646ec448dd0877c90.tar.gz hercules-50676ff620ab9774d1b16d6646ec448dd0877c90.tar.bz2 hercules-50676ff620ab9774d1b16d6646ec448dd0877c90.tar.xz hercules-50676ff620ab9774d1b16d6646ec448dd0877c90.zip |
Merge pull request #2465 from 4144/updatepackets
Fix packet ZC_SE_PC_BUY_CASHITEM_RESULT for old packet versions
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 2f1594477..5228f06a3 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -19561,6 +19561,7 @@ static void clif_parse_CashShopBuy(int fd, struct map_session_data *sd) static void clif_cashShopBuyAck(int fd, struct map_session_data *sd, int itemId, enum CASH_SHOP_BUY_RESULT result) { +#if PACKETVER_MAIN_NUM >= 20101123 || PACKETVER_RE_NUM >= 20120328 || defined(PACKETVER_ZERO) nullpo_retv(sd); WFIFOHEAD(fd, sizeof(struct PACKET_ZC_SE_PC_BUY_CASHITEM_RESULT)); struct PACKET_ZC_SE_PC_BUY_CASHITEM_RESULT *p = WFIFOP(fd, 0); @@ -19570,6 +19571,7 @@ static void clif_cashShopBuyAck(int fd, struct map_session_data *sd, int itemId, p->cashPoints = sd->cashPoints; p->kafraPoints = sd->kafraPoints; WFIFOSET(fd, sizeof(struct PACKET_ZC_SE_PC_BUY_CASHITEM_RESULT)); +#endif } static void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); |