Skip to content

Commit

Permalink
Merge pull request #2465 from 4144/updatepackets
Browse files Browse the repository at this point in the history
Fix packet ZC_SE_PC_BUY_CASHITEM_RESULT for old packet versions
  • Loading branch information
MishimaHaruna committed May 7, 2019
2 parents 6546bee + 2ab0e1c commit 50676ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map/clif.c
Expand Up @@ -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);
Expand All @@ -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)));
Expand Down

0 comments on commit 50676ff

Please sign in to comment.