diff options
author | Haru <haru@dotalux.com> | 2016-02-16 13:31:41 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-17 10:40:43 +0100 |
commit | 5b673efa121320d1575e126243fa2c7ec460952d (patch) | |
tree | 609fa0a08bf4065a07ccb469039df43e96d095ee /src/map/pc.c | |
parent | 6c127b3ec4f73f02aff5b37e9526dcc249d95c54 (diff) | |
download | hercules-5b673efa121320d1575e126243fa2c7ec460952d.tar.gz hercules-5b673efa121320d1575e126243fa2c7ec460952d.tar.bz2 hercules-5b673efa121320d1575e126243fa2c7ec460952d.tar.xz hercules-5b673efa121320d1575e126243fa2c7ec460952d.zip |
Renamed config->read_file to config->load_file
- The return value is now consistent with the libconfig standard
(CONFIG_TRUE/CONFIG_FALSE).
- Removed some redundant error messages.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 8d1df71a9..8fe1b7c57 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -10651,10 +10651,8 @@ void pc_read_skill_tree(void) bool loaded[CLASS_COUNT] = { false }; safesnprintf(config_filename, sizeof(config_filename), "%s/"DBPATH"skill_tree.conf", map->db_path); - if (libconfig->read_file(&skill_tree_conf, config_filename)) { - ShowError("can't read %s\n", config_filename); + if (!libconfig->load_file(&skill_tree_conf, config_filename)) return; - } // Foreach job while ((skt = libconfig->setting_get_elem(skill_tree_conf.root, i++))) { |