diff options
author | shennetsind <ind@henn.et> | 2013-05-17 22:03:06 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-17 22:03:06 -0300 |
commit | 21bbfad48084190b8a6881ee3b277993418a5137 (patch) | |
tree | 2c8cf1d4a83bb0a7bea2a7e81c003fc240185207 /src/map/itemdb.c | |
parent | 104bb6c05dc8effef9db715f0b708d4548e10010 (diff) | |
parent | b3bc657a44a9fbdd1730f569855e25ccd0f8dd01 (diff) | |
download | hercules-21bbfad48084190b8a6881ee3b277993418a5137.tar.gz hercules-21bbfad48084190b8a6881ee3b277993418a5137.tar.bz2 hercules-21bbfad48084190b8a6881ee3b277993418a5137.tar.xz hercules-21bbfad48084190b8a6881ee3b277993418a5137.zip |
Follow up b3bc657a44a9fbdd1730f569855e25ccd0f8dd01
Adjusting it to the ERS modification, my IDE automatically fixed some indentation that i guess was accidentally removed.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 590a0cf57..2a5fa48de 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -30,7 +30,7 @@ struct item_data dummy_item; //This is the default dummy item used for non-exist */ static int itemdb_searchname_sub(DBKey key, DBData *data, va_list ap) { - struct item_data *item = db_data2ptr(data), **dst, **dst2; + struct item_data *item = DB->data2ptr(data), **dst, **dst2; char *str; str=va_arg(ap,char *); dst=va_arg(ap,struct item_data **); @@ -83,7 +83,7 @@ struct item_data* itemdb_searchname(const char *str) */ static int itemdb_searchname_array_sub(DBKey key, DBData data, va_list ap) { - struct item_data *item = db_data2ptr(&data); + struct item_data *item = DB->data2ptr(&data); char *str; str=va_arg(ap,char *); if (item == &dummy_item) @@ -127,7 +127,7 @@ int itemdb_searchname_array(struct item_data** data, int size, const char *str) size -= count; db_count = itemdb_other->getall(itemdb_other, (DBData**)&db_data, size, itemdb_searchname_array_sub, str); for (i = 0; i < db_count; i++) - data[count++] = db_data2ptr(db_data[i]); + data[count++] = DB->data2ptr(db_data[i]); count += db_count; } return count; @@ -1376,7 +1376,7 @@ static void destroy_item_data(struct item_data* self, int free_self) */ static int itemdb_final_sub(DBKey key, DBData *data, va_list ap) { - struct item_data *id = db_data2ptr(data); + struct item_data *id = DB->data2ptr(data); if( id != &dummy_item ) destroy_item_data(id, 1); |