Skip to content

Commit

Permalink
Fixed searchstore feature for 2015-02-26 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemongrass3110 committed Aug 30, 2016
1 parent 0feabf3 commit 600e8ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/map/clif.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 600e8ae

Please sign in to comment.