summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-12 11:38:08 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-12 11:38:08 -0600
commitf6296b7d766a20ad7a48f8e4b01ce67402ae2931 (patch)
tree903a4da8f60f6d0e1e239e6eb2f4b4eb74b96406 /src/map/trade.c
parent37bdc8e72ec43e6e8f827ed77a1f93f5a8b0007f (diff)
downloadtmwa-f6296b7d766a20ad7a48f8e4b01ce67402ae2931.tar.gz
tmwa-f6296b7d766a20ad7a48f8e4b01ce67402ae2931.tar.bz2
tmwa-f6296b7d766a20ad7a48f8e4b01ce67402ae2931.tar.xz
tmwa-f6296b7d766a20ad7a48f8e4b01ce67402ae2931.zip
Fix adding equiped items to trade
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 8880629..67ac257 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -147,6 +147,7 @@ void trade_tradeadditem(struct map_session_data *sd,int index,int amount)
return;
}
}
+ pc_unequipinvyitem(sd, index - 2, 1);
sd->deal_item_index[trade_i] =index;
sd->deal_item_amount[trade_i]+=amount;
clif_tradeitemok(sd,index,amount,0); //success to add item