diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-02-07 04:57:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-02-07 04:57:08 +0300 |
commit | 6c071f5de0d10ff4700a74e82169a7e2b33842a7 (patch) | |
tree | b716296531f84e6b234902702e9502322ce3068e | |
parent | 1efc9f3571988551407191a0784b363022c7fcc5 (diff) | |
download | hercules-6c071f5de0d10ff4700a74e82169a7e2b33842a7.tar.gz hercules-6c071f5de0d10ff4700a74e82169a7e2b33842a7.tar.bz2 hercules-6c071f5de0d10ff4700a74e82169a7e2b33842a7.tar.xz hercules-6c071f5de0d10ff4700a74e82169a7e2b33842a7.zip |
Fix reserved buffer for packet PACKET_ZC_WARPLIST
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ae92e7b2c..024adffc5 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5782,7 +5782,7 @@ static void clif_skill_warppoint(struct map_session_data *sd, uint16 skill_id, u nullpo_retv(sd); fd = sd->fd; #if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO) - len = sizeof(struct PACKET_ZC_WARPLIST) + sizeof(struct PACKET_ZC_WARPLIST_sub) * mapsCount; + len = sizeof(struct PACKET_ZC_WARPLIST) + sizeof(struct PACKET_ZC_WARPLIST_sub) * 6; #else len = sizeof(struct PACKET_ZC_WARPLIST); #endif |