summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-26 23:53:26 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-26 23:53:26 +0000
commit7f631a0654aa1ab4d9356753c49457a0f571c58b (patch)
tree8aae02cd7cde3a56340b0f287da4f6596c4dd421 /src/map/npc.c
parent5f5cd93f2da3377ce3b9ae45d4a15a944a723517 (diff)
downloadhercules-7f631a0654aa1ab4d9356753c49457a0f571c58b.tar.gz
hercules-7f631a0654aa1ab4d9356753c49457a0f571c58b.tar.bz2
hercules-7f631a0654aa1ab4d9356753c49457a0f571c58b.tar.xz
hercules-7f631a0654aa1ab4d9356753c49457a0f571c58b.zip
- Follow up to r16147: check the price in the shop file, instead of id->value_buy. Thanks EvilPuncker!
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16154 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 9cfce37ac..3cd588b73 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));