From 600e8ae7ce310de2b046cf141ec7adb7cd1c83e0 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Wed, 31 Aug 2016 01:02:10 +0200 Subject: [PATCH] Fixed searchstore feature for 2015-02-26 onwards --- src/map/clif.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map/clif.c b/src/map/clif.c index 81cda14864..2e65c95d2d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17212,7 +17212,11 @@ static void clif_parse_SearchStoreInfo(int fd, struct map_session_data* sd) /// 1 = "next" label to retrieve more results void clif_search_store_info_ack(struct map_session_data* sd) { +#if PACKETVER >= 20150226 + const unsigned int blocksize = MESSAGE_SIZE+26+5*MAX_ITEM_RDM_OPT; +#else const unsigned int blocksize = MESSAGE_SIZE+26; +#endif int fd = sd->fd; unsigned int i, start, end; @@ -17246,6 +17250,7 @@ void clif_search_store_info_ack(struct map_session_data* sd) it.amount = ssitem->amount; clif_addcards(WFIFOP(fd,i*blocksize+25+MESSAGE_SIZE), &it); + clif_add_random_options(WFIFOP(fd,i*blocksize+31+MESSAGE_SIZE), &it); } WFIFOSET(fd,WFIFOW(fd,2));