diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-16 22:01:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-19 21:53:39 +0300 |
commit | 0bafc4b2f9d9cd01596f28862e6c105af666ec30 (patch) | |
tree | 42a84306edd8a38b12380bd97d36165af25cd556 /src/map/searchstore.c | |
parent | 0c2cf7579324ade56287b9a15f1fc7c0a8dffffd (diff) | |
download | hercules-0bafc4b2f9d9cd01596f28862e6c105af666ec30.tar.gz hercules-0bafc4b2f9d9cd01596f28862e6c105af666ec30.tar.bz2 hercules-0bafc4b2f9d9cd01596f28862e6c105af666ec30.tar.xz hercules-0bafc4b2f9d9cd01596f28862e6c105af666ec30.zip |
Replace item id shorts to int in map server.
Diffstat (limited to 'src/map/searchstore.c')
-rw-r--r-- | src/map/searchstore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/searchstore.c b/src/map/searchstore.c index 1cf254e52..0c6fa3555 100644 --- a/src/map/searchstore.c +++ b/src/map/searchstore.c @@ -263,7 +263,7 @@ static void searchstore_close(struct map_session_data *sd) } } -static void searchstore_click(struct map_session_data *sd, int account_id, int store_id, unsigned short nameid) +static void searchstore_click(struct map_session_data *sd, int account_id, int store_id, int nameid) { unsigned int i; struct map_session_data* pl_sd; @@ -278,7 +278,7 @@ static void searchstore_click(struct map_session_data *sd, int account_id, int s ARR_FIND( 0, sd->searchstore.count, i, sd->searchstore.items[i].store_id == store_id && sd->searchstore.items[i].account_id == account_id && sd->searchstore.items[i].nameid == nameid ); if( i == sd->searchstore.count ) {// no such result, crafted - ShowWarning("searchstore_click: Received request with item %hu of account %d, which is not part of current result set (account_id=%d, char_id=%d).\n", nameid, account_id, sd->bl.id, sd->status.char_id); + ShowWarning("searchstore_click: Received request with item %d of account %d, which is not part of current result set (account_id=%d, char_id=%d).\n", nameid, account_id, sd->bl.id, sd->status.char_id); clif->search_store_info_failed(sd, SSI_FAILED_SSILIST_CLICK_TO_OPEN_STORE); return; } @@ -345,7 +345,7 @@ static void searchstore_clearremote(struct map_session_data *sd) } /// receives results from a store-specific callback -static bool searchstore_result(struct map_session_data *sd, unsigned int store_id, int account_id, const char *store_name, unsigned short nameid, unsigned short amount, unsigned int price, const int *card, unsigned char refine, const struct item_option *option) +static bool searchstore_result(struct map_session_data *sd, unsigned int store_id, int account_id, const char *store_name, int nameid, unsigned short amount, unsigned int price, const int *card, unsigned char refine, const struct item_option *option) { struct s_search_store_info_item* ssitem; |