summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-07 19:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-07 19:11:07 +0300
commit2ab0e1c614d461885c2a2eafc2005fca723d0853 (patch)
treebd70dca75e3c014ffbde3d6cced04116086fb14b
parent45a3cb0def45cbd0bfb6769e116da84edc686d79 (diff)
downloadhercules-2ab0e1c614d461885c2a2eafc2005fca723d0853.tar.gz
hercules-2ab0e1c614d461885c2a2eafc2005fca723d0853.tar.bz2
hercules-2ab0e1c614d461885c2a2eafc2005fca723d0853.tar.xz
hercules-2ab0e1c614d461885c2a2eafc2005fca723d0853.zip
Fix packet ZC_SE_PC_BUY_CASHITEM_RESULT for old packet versions
-rw-r--r--src/map/clif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 1214106b7..b72ea0e43 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -19530,6 +19530,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);
@@ -19539,6 +19540,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)));