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:
kenpachi2k11 2012-08-27 11:01:05 +00:00
parent c80aa9c9c2
commit 92bc81228a

View File

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