Updated read_elemental_skilldb() to skip empty lines instead of throwing an error. (bugreport:6565)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16711 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
c80aa9c9c2
commit
92bc81228a
@ -759,6 +759,9 @@ int read_elemental_skilldb(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 < 4 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user