diff options
author | Haru <haru@dotalux.com> | 2014-02-09 15:42:35 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-02-09 15:42:35 +0100 |
commit | 7b19f964b88dffcfdc8c12648d5e4ee8a26a9504 (patch) | |
tree | 0c8a5bb1dc15d107db3ef2fac8d12822511bcdec /src/map/skill.c | |
parent | 51805d1f2cedc084fea6cc390ca23a24291edbec (diff) | |
download | hercules-7b19f964b88dffcfdc8c12648d5e4ee8a26a9504.tar.gz hercules-7b19f964b88dffcfdc8c12648d5e4ee8a26a9504.tar.bz2 hercules-7b19f964b88dffcfdc8c12648d5e4ee8a26a9504.tar.xz hercules-7b19f964b88dffcfdc8c12648d5e4ee8a26a9504.zip |
Improved script case check reports to include more accurate source info.
- Fixes bugreport:8013, thanks to Dastgir Pojee
http://hercules.ws/board/tracker/issue-8013-script-add-str-problem/
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 2e520454f..b0c6d7a38 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -18130,7 +18130,13 @@ void skill_readdb(bool minimal) { safestrncpy(skill->db[0].name, "UNKNOWN_SKILL", sizeof(skill->db[0].name)); safestrncpy(skill->db[0].desc, "Unknown Skill", sizeof(skill->db[0].desc)); +#ifdef ENABLE_CASE_CHECK + script->parser_current_file = DBPATH"skill_db.txt"; +#endif // ENABLE_CASE_CHECK sv->readdb(map->db_path, DBPATH"skill_db.txt", ',', 17, 17, MAX_SKILL_DB, skill->parse_row_skilldb); +#ifdef ENABLE_CASE_CHECK + script->parser_current_file = NULL; +#endif // ENABLE_CASE_CHECK if (minimal) return; |