summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-25 04:52:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-25 04:52:59 +0300
commit7be2ac3fd661f24ec71cb3bb469551eefc51451f (patch)
tree7cbade21ce6ee61690c4fe3c5e57338d0d1549db
parent22e4f01fda1d9f61b0e663eb9e4edf8bd73b6e91 (diff)
downloadhercules-7be2ac3fd661f24ec71cb3bb469551eefc51451f.tar.gz
hercules-7be2ac3fd661f24ec71cb3bb469551eefc51451f.tar.bz2
hercules-7be2ac3fd661f24ec71cb3bb469551eefc51451f.tar.xz
hercules-7be2ac3fd661f24ec71cb3bb469551eefc51451f.zip
Swap calls to send info about solt item to seller and actual item deletion from cart.
-rw-r--r--src/map/vending.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index 0eb5e39e2..6f4515120 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -191,8 +191,8 @@ void vending_purchasereq(struct map_session_data* sd, int aid, unsigned int uid,
// vending item
pc->additem(sd, &vsd->status.cart[idx], amount, LOG_TYPE_VENDING);
vsd->vending[vend_list[i]].amount -= amount;
- pc->cart_delitem(vsd, idx, amount, 0, LOG_TYPE_VENDING);
clif->vendingreport(vsd, idx, amount);
+ pc->cart_delitem(vsd, idx, amount, 0, LOG_TYPE_VENDING);
//print buyer's name
if( battle_config.buyer_name ) {