No matter what MAX_ITEM_RDM_OPT is, send 5 random options (#3040)

Thanks to @syracuase for the hint with RODEX
This commit is contained in:
Vincent Stumpf 2018-04-08 14:33:15 -07:00 committed by Lemongrass3110
parent dca8cc6027
commit f948b9a665

View File

@ -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