summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-27 05:12:41 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-27 05:12:41 +0000
commit8c5bdba41e4f1b49d55f58c63f82fbe022b05e8c (patch)
tree9f49a75aee868bdea420c351ef33a1e9a89edc7b /src
parent4f1efdf474a048cf3aa4c2830b7036ee21d7e2ea (diff)
downloadhercules-8c5bdba41e4f1b49d55f58c63f82fbe022b05e8c.tar.gz
hercules-8c5bdba41e4f1b49d55f58c63f82fbe022b05e8c.tar.bz2
hercules-8c5bdba41e4f1b49d55f58c63f82fbe022b05e8c.tar.xz
hercules-8c5bdba41e4f1b49d55f58c63f82fbe022b05e8c.zip
- read_elementaldb: skip blank lines.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16710 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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 ae3c738d8..be260a0b9 100644
--- a/src/map/elemental.c
+++ b/src/map/elemental.c
@@ -671,6 +671,9 @@ int read_elementaldb(void) {
if( line[0] == '/' && line[1] == '/' )
continue;
+ if( line[0] == '\0' || line[0] == '\n' || line[0] == '\r')
+ continue;
+
i = 0;
p = strtok(line, ",");
while( p != NULL && i < 26 ) {