summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
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 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 ) {