summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-01 01:05:32 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-01 01:05:32 +0000
commit231c0084678af14b7443cbd47da99ebe380fe85c (patch)
tree3e652bccf0092e56c38f8eee3870f29db996c341 /src/map/trade.c
parentee42d435d483d82a7b5ab753204030c363080a69 (diff)
downloadhercules-231c0084678af14b7443cbd47da99ebe380fe85c.tar.gz
hercules-231c0084678af14b7443cbd47da99ebe380fe85c.tar.bz2
hercules-231c0084678af14b7443cbd47da99ebe380fe85c.tar.xz
hercules-231c0084678af14b7443cbd47da99ebe380fe85c.zip
* Pending trade requests no longer prevent a character from trading someone else instead (official).
- This fixes trade window displaying wrong name when attempting to deal multiple characters (bugreport:344). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14645 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 32c84b508..ba01826f2 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -56,7 +56,7 @@ void trade_traderequest(struct map_session_data *sd, struct map_session_data *ta
}
}
- if ((target_sd->trade_partner != 0) || (sd->trade_partner != 0)) {
+ if (target_sd->trade_partner != 0) {
clif_tradestart(sd, 2); // person is in another trade
return;
}
@@ -110,6 +110,7 @@ void trade_tradeack(struct map_session_data *sd, int type)
if (tsd->state.trading || tsd->trade_partner != sd->bl.id)
{
clif_tradestart(sd, 2);
+ sd->trade_partner=0;
return; //Already trading or wrong partner.
}