From 79fd3bacf40f3496dcc8e952fa9f84c8dbbb23ca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Nov 2015 18:43:10 +0300 Subject: fix buy from markets. --- src/emap/npc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3-60-g2f50