summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d03b247..4ad09a3 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2842,6 +2842,9 @@ pc_remove_items(struct map_session_data *player, int item_id, int count)
nullpo_retr(0, player);
+ if (player->trade_partner != 0)
+ trade_tradecancel(player);
+
for (i = 0; i < MAX_INVENTORY && count; i++) {
if (player->status.inventory[i].nameid == item_id) {
int to_delete = count;