summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 0f21648..40a762b 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -343,6 +343,8 @@ void trade_tradecommit (struct map_session_data *sd)
MAP_LOG_PC (sd, " TRADECANCEL");
return;
}
+ sd->trade_partner = 0;
+ target_sd->trade_partner = 0;
for (trade_i = 0; trade_i < 10; trade_i++)
{
if (sd->deal_item_amount[trade_i] != 0)
@@ -399,9 +401,7 @@ void trade_tradecommit (struct map_session_data *sd)
clif_updatestatus (sd, SP_ZENY);
}
sd->deal_locked = 0;
- sd->trade_partner = 0;
target_sd->deal_locked = 0;
- target_sd->trade_partner = 0;
clif_tradecompleted (sd, 0);
clif_tradecompleted (target_sd, 0);
MAP_LOG_PC (sd, " TRADEOK");