From 9fc7b8d6292d12e52b7b3f9ae939710c43bba33d Mon Sep 17 00:00:00 2001 From: brianluau Date: Sat, 26 May 2012 23:53:26 +0000 Subject: [PATCH] - Follow up to r16147: check the price in the shop file, instead of id->value_buy. Thanks EvilPuncker! git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16154 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.c b/src/map/npc.c index 9cfce37acd..3cd588b730 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2109,7 +2109,7 @@ static const char* npc_parse_shop(char* w1, char* w2, char* w3, char* w4, const else value = 0; // Cashshop doesn't have a "buy price" in the item_db } - if( type == SHOP && id->value_buy == 0 ) + if( type == SHOP && value == 0 ) { // NPC selling items for free! ShowWarning("npc_parse_shop: Item %s [%d] is being sold for FREE in file '%s', line '%d'.\n", id->name, nameid, filepath, strline(buffer,start-buffer));