summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-10-11 05:14:15 +0200
committerHaru <haru@dotalux.com>2015-10-11 05:14:59 +0200
commit2d51cded8d5612b7ecbe171a6ca309e91d14bfd7 (patch)
treee1c84f244d0b92f4045892464483423423555f87 /src/map/quest.c
parentd70d9d4d19f0deae2a2aceb047872611d5047ae0 (diff)
downloadhercules-2d51cded8d5612b7ecbe171a6ca309e91d14bfd7.tar.gz
hercules-2d51cded8d5612b7ecbe171a6ca309e91d14bfd7.tar.bz2
hercules-2d51cded8d5612b7ecbe171a6ca309e91d14bfd7.tar.xz
hercules-2d51cded8d5612b7ecbe171a6ca309e91d14bfd7.zip
Fixed an issue in the quest_db parsing function.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index fe4014ae5..4958644ee 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -507,7 +507,7 @@ int quest_read_db(void)
const char *filename = "quest_db.conf";
sprintf(filepath, "%s/%s", map->db_path, filename);
- if (libconfig->read_file(&quest_db_conf, filepath) || !(qdb = libconfig->setting_get_member(quest_db_conf.root, filename))) {
+ if (libconfig->read_file(&quest_db_conf, filepath) || !(qdb = libconfig->setting_get_member(quest_db_conf.root, "quest_db"))) {
ShowError("can't read %s\n", filepath);
return -1;
}