summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-07-09 22:37:24 +0300
committerAndrei Karas <akaras@inbox.ru>2019-08-02 23:52:27 +0300
commit6629dfd05f4ebef7862cd2d499b7330acc8d82ac (patch)
tree07c1366c8e94b6e87d1d481a10f75618b7abb356 /src/map/trade.c
parent0edf2360b185f0e1c68bb6ddbbbe3720af5651b3 (diff)
downloadhercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.tar.gz
hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.tar.bz2
hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.tar.xz
hercules-6629dfd05f4ebef7862cd2d499b7330acc8d82ac.zip
Add some missing checks into clif.c
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index cef14ffe6..7096d12e4 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -50,6 +50,9 @@ static void trade_traderequest(struct map_session_data *sd, struct map_session_d
{
nullpo_retv(sd);
+ if (sd == target_sd)
+ return;
+
if (map->list[sd->bl.m].flag.notrade) {
clif->message (sd->fd, msg_sd(sd,272)); // You can't trade in this map
return;