From c82f6fdf3d7c223f2d07ea15dfa1f1c0c2c8a033 Mon Sep 17 00:00:00 2001 From: Guilherme Menaldo Date: Wed, 9 Oct 2019 19:52:59 -0300 Subject: Fixes close merchant vending There were some wrong checks that prevented the vend to be closed. --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index f6caa502e..90434ecc3 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -14298,7 +14298,7 @@ static void clif_parse_CloseVending(int fd, struct map_session_data *sd) __attri /// 012e static void clif_parse_CloseVending(int fd, struct map_session_data *sd) { - if (pc_istrading(sd) || pc_isdead(sd)) + if (sd->npc_id || sd->state.buyingstore || sd->state.trading) return; vending->close(sd); -- cgit v1.2.3-60-g2f50