summaryrefslogtreecommitdiff
path: root/src/map/searchstore.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-11 20:53:42 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:27 +0300
commitaee584e0444ab514ced7787451f281777437912a (patch)
treec0e820f6a940642be4cf0cd346d8c8480acbb483 /src/map/searchstore.c
parent8d5020c5b9d13718c52a1a1a7c3bbe640c83a5b1 (diff)
downloadhercules-aee584e0444ab514ced7787451f281777437912a.tar.gz
hercules-aee584e0444ab514ced7787451f281777437912a.tar.bz2
hercules-aee584e0444ab514ced7787451f281777437912a.tar.xz
hercules-aee584e0444ab514ced7787451f281777437912a.zip
Update packet CZ_SEARCH_STORE_INFO.
Diffstat (limited to 'src/map/searchstore.c')
-rw-r--r--src/map/searchstore.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/searchstore.c b/src/map/searchstore.c
index 2243ffe04..6b847eb92 100644
--- a/src/map/searchstore.c
+++ b/src/map/searchstore.c
@@ -96,7 +96,11 @@ static bool searchstore_open(struct map_session_data *sd, unsigned int uses, uns
return true;
}
-static void searchstore_query(struct map_session_data *sd, unsigned char type, unsigned int min_price, unsigned int max_price, const unsigned short *itemlist, unsigned int item_count, const unsigned short *cardlist, unsigned int card_count)
+static void searchstore_query(struct map_session_data *sd,
+ unsigned char type,
+ unsigned int min_price, unsigned int max_price,
+ const uint32 *itemlist, unsigned int item_count,
+ const uint32 *cardlist, unsigned int card_count)
{
unsigned int i;
struct map_session_data* pl_sd;
@@ -137,14 +141,14 @@ static void searchstore_query(struct map_session_data *sd, unsigned char type, u
// validate lists
for( i = 0; i < item_count; i++ ) {
if( !itemdb->exists(itemlist[i]) ) {
- ShowWarning("searchstore_query: Client resolved item %hu is not known.\n", itemlist[i]);
+ ShowWarning("searchstore_query: Client resolved item %u is not known.\n", itemlist[i]);
clif->search_store_info_failed(sd, SSI_FAILED_NOTHING_SEARCH_ITEM);
return;
}
}
for( i = 0; i < card_count; i++ ) {
if( !itemdb->exists(cardlist[i]) ) {
- ShowWarning("searchstore_query: Client resolved card %hu is not known.\n", cardlist[i]);
+ ShowWarning("searchstore_query: Client resolved card %u is not known.\n", cardlist[i]);
clif->search_store_info_failed(sd, SSI_FAILED_NOTHING_SEARCH_ITEM);
return;
}