summaryrefslogtreecommitdiff
path: root/src/map/vending.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-05 20:39:31 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-12 02:29:12 +0300
commit6e0ecf794b95405f70d27e676a03153fc2c2b862 (patch)
tree8e05633579dc714b6afbd5e43eb512e4a58a0dd3 /src/map/vending.c
parentc6871ff29e0e6d58f6915aafaf1b86e464aae623 (diff)
downloadhercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.tar.gz
hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.tar.bz2
hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.tar.xz
hercules-6e0ecf794b95405f70d27e676a03153fc2c2b862.zip
Split btype and item_id parameters in function clif_skill_fail.
Diffstat (limited to 'src/map/vending.c')
-rw-r--r--src/map/vending.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index fb8b22729..9bd06c758 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -257,14 +257,14 @@ static void vending_openvending(struct map_session_data *sd, const char *message
vending_skill_lvl = pc->checkskill(sd, MC_VENDING);
// skill level and cart check
if( !vending_skill_lvl || !pc_iscarton(sd) ) {
- clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
+ clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0, 0);
return;
}
// check number of items in shop
if( count < 1 || count > MAX_VENDING || count > 2 + vending_skill_lvl ) {
// invalid item count
- clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
+ clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0, 0);
return;
}
@@ -298,7 +298,7 @@ static void vending_openvending(struct map_session_data *sd, const char *message
clif->message (sd->fd, msg_sd(sd,266)); //"Some of your items cannot be vended and were removed from the shop."
if( i == 0 ) { // no valid item found
- clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); // custom reply packet
+ clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0, 0); // custom reply packet
return;
}
sd->state.prevend = sd->state.workinprogress = 0;