diff options
author | Haru <haru@dotalux.com> | 2013-11-18 02:29:46 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-18 02:34:02 +0100 |
commit | d9a89c56ea63e369999ca13f1584eef9e511490f (patch) | |
tree | 86064ce1ed01540e815016c713836a328bdf609a /src/map/itemdb.h | |
parent | ddcff6c98f4e9d2ac124d1f1e01e6a612da2de41 (diff) | |
download | hercules-d9a89c56ea63e369999ca13f1584eef9e511490f.tar.gz hercules-d9a89c56ea63e369999ca13f1584eef9e511490f.tar.bz2 hercules-d9a89c56ea63e369999ca13f1584eef9e511490f.tar.xz hercules-d9a89c56ea63e369999ca13f1584eef9e511490f.zip |
Fixed an issue with item_db2 entries that specify Inherit, and no Script
- Added missing source documentation for the itemdb overhaul related
functions.
- Slighty refactored the readdb sql function.
- Special thanks to sevenzz23 for reporting the crash issue (topic:3029)
http://hercules.ws/board/topic/3029-ritem-data-structure-overhaul-error-msg/
and to Ind for testing.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 092db52d7..3f31c79d4 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -350,8 +350,8 @@ struct itemdb_interface { int (*validate_entry) (struct item_data *entry, int n, const char *source); int (*readdb_sql_sub) (Sql *handle, int n, const char *source); int (*readdb_libconfig_sub) (config_setting_t *it, int n, const char *source); - int (*readdb) (const char *filename); - int (*read_sqldb) (void); + int (*readdb_libconfig) (const char *filename); + int (*readdb_sql) (const char *tablename); uint64 (*unique_id) (int8 flag, int64 value); int (*uid_load) (); void (*read) (bool minimal); |