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
@ -758,6 +758,9 @@ int read_elemental_skilldb(void) {
|
|||||||
k++;
|
k++;
|
||||||
if( line[0] == '/' && line[1] == '/' )
|
if( line[0] == '/' && line[1] == '/' )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( line[0] == '\0' || line[0] == '\n' || line[0] == '\r')
|
||||||
|
continue;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
p = strtok(line, ",");
|
p = strtok(line, ",");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user