summaryrefslogtreecommitdiff
path: root/src/map/buyingstore.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-29 22:42:35 +0200
committerGitHub <noreply@github.com>2018-06-29 22:42:35 +0200
commitfe476d318579755b30bb0ed5f61d402e5fa5754b (patch)
tree5f0ca6388601552375fb2fbaf96410dc76b76703 /src/map/buyingstore.c
parent887d53cac4391b438f07dccf7e148ff0769f6a55 (diff)
parent2170bf7c3cd95faf17030c5b458ab0d639e597fd (diff)
downloadhercules-fe476d318579755b30bb0ed5f61d402e5fa5754b.tar.gz
hercules-fe476d318579755b30bb0ed5f61d402e5fa5754b.tar.bz2
hercules-fe476d318579755b30bb0ed5f61d402e5fa5754b.tar.xz
hercules-fe476d318579755b30bb0ed5f61d402e5fa5754b.zip
Merge pull request #2095 from 4144/updatepackets
Update packets up to 2018-06-27 and fix some existing packets
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r--src/map/buyingstore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c
index 8f8e8da9c..16c35ff2a 100644
--- a/src/map/buyingstore.c
+++ b/src/map/buyingstore.c
@@ -475,7 +475,8 @@ bool buyingstore_searchall(struct map_session_data* sd, const struct s_search_st
;
}
- if( !searchstore->result(s->search_sd, sd->buyer_id, sd->status.account_id, sd->message, it->nameid, it->amount, it->price, buyingstore->blankslots, 0) )
+ // TODO: add support for cards and options
+ if (!searchstore->result(s->search_sd, sd->buyer_id, sd->status.account_id, sd->message, it->nameid, it->amount, it->price, buyingstore->blankslots, 0, buyingstore->blankoptions))
{// result set full
return false;
}
@@ -487,7 +488,8 @@ void buyingstore_defaults(void) {
buyingstore = &buyingstore_s;
buyingstore->nextid = 0;
- memset(buyingstore->blankslots,0,sizeof(buyingstore->blankslots));
+ memset(buyingstore->blankslots, 0, sizeof(buyingstore->blankslots));
+ memset(buyingstore->blankoptions, 0, sizeof(buyingstore->blankoptions));
/* */
buyingstore->setup = buyingstore_setup;
buyingstore->create = buyingstore_create;