summaryrefslogtreecommitdiff
path: root/src/emap/npc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-04 18:43:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-04 18:43:10 +0300
commit79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca (patch)
treefdbdde1dbd7cab7ddc04c16e6c9669d261916309 /src/emap/npc.c
parentbd878b3c17baea8480456be214624e2b6f3d2c30 (diff)
downloadevol-hercules-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.tar.gz
evol-hercules-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.tar.bz2
evol-hercules-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.tar.xz
evol-hercules-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.zip
fix buy from markets.
Diffstat (limited to 'src/emap/npc.c')
-rw-r--r--src/emap/npc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/npc.c b/src/emap/npc.c
index 52e36ac..fa09bc6 100644
--- a/src/emap/npc.c
+++ b/src/emap/npc.c
@@ -77,6 +77,7 @@ int enpc_buysellsel(TBL_PC* sd, int *id, int *type)
if (*type == 0 && nd->subtype == SCRIPT && nd->u.scr.shop && nd->u.scr.shop->type == NST_MARKET)
{
clif->npc_market_open(sd, nd);
+ sd->npc_shopid = nd->bl.id;
hookStop();
return 0;
}