- read_elementaldb: skip blank lines.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16710 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
brianluau 2012-08-27 05:12:41 +00:00
parent b76d16d0c4
commit c80aa9c9c2
3 changed files with 5 additions and 2 deletions

View File

@ -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 ) {