From f948b9a6650dfaf41d8c9e8a9919c9ecf5b413ae Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Sun, 8 Apr 2018 14:33:15 -0700 Subject: [PATCH] No matter what MAX_ITEM_RDM_OPT is, send 5 random options (#3040) Thanks to @syracuase for the hint with RODEX --- src/map/clif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 344edb86ec..4afcdbe415 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -15393,7 +15393,7 @@ void clif_Mail_read(struct map_session_data *sd, int mail_id) msg_len += 1; // Zero Termination - itemsize = 24 + 5 * MAX_ITEM_RDM_OPT; + itemsize = 24 + 5 * 5; len = 24 + msg_len+1 + itemsize * count; WFIFOHEAD(fd, len); @@ -17992,7 +17992,7 @@ static void clif_parse_SearchStoreInfo(int fd, struct map_session_data* sd) void clif_search_store_info_ack(struct map_session_data* sd) { #if PACKETVER >= 20150225 - const unsigned int blocksize = MESSAGE_SIZE+26+5*MAX_ITEM_RDM_OPT; + const unsigned int blocksize = MESSAGE_SIZE+26+5*5; #else const unsigned int blocksize = MESSAGE_SIZE+26; #endif