diff options
author | Haru <haru@dotalux.com> | 2019-08-26 00:50:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-26 00:50:49 +0200 |
commit | 81e5138adab92c18c7b95f4ca55850be20dde462 (patch) | |
tree | a7c1908ddc8d213ceef453a835b9522ce97617a8 /src/map/trade.c | |
parent | 47f133c410d0004bf0cb05a4de5af2ee1944bcc3 (diff) | |
parent | 6629dfd05f4ebef7862cd2d499b7330acc8d82ac (diff) | |
download | hercules-81e5138adab92c18c7b95f4ca55850be20dde462.tar.gz hercules-81e5138adab92c18c7b95f4ca55850be20dde462.tar.bz2 hercules-81e5138adab92c18c7b95f4ca55850be20dde462.tar.xz hercules-81e5138adab92c18c7b95f4ca55850be20dde462.zip |
Merge pull request #2501 from 4144/fixes
Add some missing checks into clif.c
Diffstat (limited to 'src/map/trade.c')
-rw-r--r-- | src/map/trade.c | 3 |
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; |