summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-10-09 19:52:59 -0300
committerGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-10-09 19:55:42 -0300
commitc82f6fdf3d7c223f2d07ea15dfa1f1c0c2c8a033 (patch)
treea310cadc87de366af90b1a583aa76b68ef81cbd3 /src/map/clif.c
parentd026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff)
downloadhercules-c82f6fdf3d7c223f2d07ea15dfa1f1c0c2c8a033.tar.gz
hercules-c82f6fdf3d7c223f2d07ea15dfa1f1c0c2c8a033.tar.bz2
hercules-c82f6fdf3d7c223f2d07ea15dfa1f1c0c2c8a033.tar.xz
hercules-c82f6fdf3d7c223f2d07ea15dfa1f1c0c2c8a033.zip
Fixes close merchant vending
There were some wrong checks that prevented the vend to be closed.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
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);