- 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:
parent
b76d16d0c4
commit
c80aa9c9c2
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user