summaryrefslogtreecommitdiff
path: root/src
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
parentbd878b3c17baea8480456be214624e2b6f3d2c30 (diff)
downloadplugin-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.tar.gz
plugin-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.tar.bz2
plugin-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.tar.xz
plugin-79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca.zip
fix buy from markets.
Diffstat (limited to 'src')
-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;
}