Browse Source

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

Thanks to @syracuase for the hint with RODEX
Vincent Stumpf 7 years ago
parent
commit
f948b9a665
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/map/clif.cpp

+ 2 - 2
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
 		msg_len += 1; // Zero Termination
 
 
-		itemsize = 24 + 5 * MAX_ITEM_RDM_OPT;
+		itemsize = 24 + 5 * 5;
 		len = 24 + msg_len+1 + itemsize * count;
 		len = 24 + msg_len+1 + itemsize * count;
 
 
 		WFIFOHEAD(fd, len);
 		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)
 void clif_search_store_info_ack(struct map_session_data* sd)
 {
 {
 #if PACKETVER >= 20150225
 #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
 #else
 	const unsigned int blocksize = MESSAGE_SIZE+26;
 	const unsigned int blocksize = MESSAGE_SIZE+26;
 #endif
 #endif