From fe14af99625d16f3c7ef1e8192a2d3b0214f33f1 Mon Sep 17 00:00:00 2001 From: Daegaladh Date: Thu, 30 Apr 2020 01:44:53 +0200 Subject: [PATCH] Fixed duplicate itemshops and pointshops (#4850) --- src/map/npc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/npc.cpp b/src/map/npc.cpp index b5600a7d2e..581c857d6c 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -3429,6 +3429,8 @@ const char* npc_parse_duplicate(char* w1, char* w2, char* w3, char* w4, const ch case NPCTYPE_POINTSHOP: case NPCTYPE_MARKETSHOP: ++npc_shop; + safestrncpy( dnd->u.shop.pointshop_str, nd->u.shop.pointshop_str, strlen( nd->u.shop.pointshop_str ) ); + nd->u.shop.itemshop_nameid = dnd->u.shop.itemshop_nameid; nd->u.shop.shop_item = dnd->u.shop.shop_item; nd->u.shop.count = dnd->u.shop.count; break;