summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorkenpachi2k11 <kenpachi2k11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-27 11:01:05 +0000
committerkenpachi2k11 <kenpachi2k11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-27 11:01:05 +0000
commit909fd614f24aedc23f474c757ee8d6f74e3a86ab (patch)
treed96be23929fd31584bda9f0ed70c3f2979a5e8a0 /src/map
parent8c5bdba41e4f1b49d55f58c63f82fbe022b05e8c (diff)
downloadhercules-909fd614f24aedc23f474c757ee8d6f74e3a86ab.tar.gz
hercules-909fd614f24aedc23f474c757ee8d6f74e3a86ab.tar.bz2
hercules-909fd614f24aedc23f474c757ee8d6f74e3a86ab.tar.xz
hercules-909fd614f24aedc23f474c757ee8d6f74e3a86ab.zip
Updated read_elemental_skilldb() to skip empty lines instead of throwing an error. (bugreport:6565)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16711 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/elemental.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/elemental.c b/src/map/elemental.c
index be260a0b9..677ca5ec0 100644
--- a/src/map/elemental.c
+++ b/src/map/elemental.c
@@ -758,6 +758,9 @@ int read_elemental_skilldb(void) {
k++;
if( line[0] == '/' && line[1] == '/' )
continue;
+
+ if( line[0] == '\0' || line[0] == '\n' || line[0] == '\r')
+ continue;
i = 0;
p = strtok(line, ",");