Fixed duplicate itemshops and pointshops (#4850)

This commit is contained in:
Daegaladh 2020-04-30 01:44:53 +02:00 committed by GitHub
parent 4829f3775d
commit fe14af9962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;