summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-10-01 22:57:09 -0300
committerGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-10-05 16:42:54 -0300
commit7d25827001493a82a8f75cfc6a0b956164b44f05 (patch)
tree911eff2691b6804c6a971bd86234313ee1af7dcf /src/map/skill.c
parentd026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff)
downloadhercules-7d25827001493a82a8f75cfc6a0b956164b44f05.tar.gz
hercules-7d25827001493a82a8f75cfc6a0b956164b44f05.tar.bz2
hercules-7d25827001493a82a8f75cfc6a0b956164b44f05.tar.xz
hercules-7d25827001493a82a8f75cfc6a0b956164b44f05.zip
Dehardcodes db files base path so the db folder can be easily moved
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ad27ef0e3..dc710eadf 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -21105,7 +21105,7 @@ static bool skill_read_skilldb(const char *filename)
nullpo_retr(false, filename);
- sprintf(filepath,"db/%s",filename);
+ libconfig->format_db_path(filename, filepath, sizeof(filepath));
if (!libconfig->load_file(&skilldb, filepath)) {
return false; // Libconfig error report.