summaryrefslogtreecommitdiff
path: root/src/map/buyingstore.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-17 08:25:07 -0300
committershennetsind <ind@henn.et>2013-09-17 08:25:07 -0300
commit5ac2ced45782fc15a9da9c0e714d201acfa5d20c (patch)
treea1098fe3cb3eb74d24bb4bc77442c5af0b15d7f2 /src/map/buyingstore.c
parent1ffca100f401142260a6cbeb5d9052170e401728 (diff)
downloadhercules-5ac2ced45782fc15a9da9c0e714d201acfa5d20c.tar.gz
hercules-5ac2ced45782fc15a9da9c0e714d201acfa5d20c.tar.bz2
hercules-5ac2ced45782fc15a9da9c0e714d201acfa5d20c.tar.xz
hercules-5ac2ced45782fc15a9da9c0e714d201acfa5d20c.zip
HPM: Itemdb.c Interface
Fully Integrated. Closes #110 Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r--src/map/buyingstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c
index 73c50b0bf..5edf9a321 100644
--- a/src/map/buyingstore.c
+++ b/src/map/buyingstore.c
@@ -147,7 +147,7 @@ void buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned cha
break;
}
- if( !id->flag.buyingstore || !itemdb_cantrade_sub(id, pc->get_group_level(sd), pc->get_group_level(sd)) || ( idx = pc->search_inventory(sd, nameid) ) == -1 )
+ if( !id->flag.buyingstore || !itemdb->cantrade_sub(id, pc->get_group_level(sd), pc->get_group_level(sd)) || ( idx = pc->search_inventory(sd, nameid) ) == -1 )
{// restrictions: allowed, no character-bound items and at least one must be owned
break;
}