diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-18 22:05:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-18 22:05:21 +0300 |
commit | 97d6d72723f0ff3ba89025261cf1174615fdc80d (patch) | |
tree | da815d70e3cb5e513e9d7ab40a6444abd5b61068 /src/emap/itemdb.c | |
parent | 388961002f81f1e8ddd5343c54d510af0ad5bdc6 (diff) | |
download | plugin-97d6d72723f0ff3ba89025261cf1174615fdc80d.tar.gz plugin-97d6d72723f0ff3ba89025261cf1174615fdc80d.tar.bz2 plugin-97d6d72723f0ff3ba89025261cf1174615fdc80d.tar.xz plugin-97d6d72723f0ff3ba89025261cf1174615fdc80d.zip |
Update for support latest hercules.
Diffstat (limited to 'src/emap/itemdb.c')
-rw-r--r-- | src/emap/itemdb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c index 5fcc86b..9f3de0a 100644 --- a/src/emap/itemdb.c +++ b/src/emap/itemdb.c @@ -7,6 +7,7 @@ #include <stdlib.h> #include <string.h> +#include "common/conf.h" #include "common/HPMi.h" #include "common/memmgr.h" #include "common/mmo.h" @@ -30,7 +31,7 @@ bool eitemdb_is_item_usable(struct item_data *item) } void eitemdb_readdb_additional_fields(int *itemid, - config_setting_t *it, + struct config_setting_t *it, int *n __attribute__ ((unused)), const char *source) { @@ -50,7 +51,7 @@ void eitemdb_readdb_additional_fields(int *itemid, return; } - config_setting_t *t = NULL; + struct config_setting_t *t = NULL; if (libconfig->setting_lookup_int(it, "FloorLifeTime", &i32) && i32 >= 0) data->floorLifeTime = i32; @@ -129,11 +130,11 @@ void eitemdb_readdb_additional_fields(int *itemid, if (libconfig->setting_lookup_string(it, "OnInsertCardScript", &str)) data->insertScript = *str ? script->parse(str, source, -item->nameid, SCRIPT_IGNORE_EXTERNAL_BRACKETS, NULL) : NULL; - config_setting_t *group = libconfig->setting_get_member(it, "AllowCards"); + struct config_setting_t *group = libconfig->setting_get_member(it, "AllowCards"); if (group) { int idx = 0; - config_setting_t *it2 = NULL; + struct config_setting_t *it2 = NULL; int cnt = 0; while ((it2 = libconfig->setting_get_elem(group, idx ++))) { |