From 6629dfd05f4ebef7862cd2d499b7330acc8d82ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Jul 2019 22:37:24 +0300 Subject: Add some missing checks into clif.c --- src/map/trade.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/trade.c') 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; -- cgit v1.2.3-70-g09d2