summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-07-27 09:15:53 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-07-27 09:15:53 +0000
commit1110c8cadd71863155a84bbf961803ad7601ef58 (patch)
tree85a01b69566c76ae924439a4dd3ab4b577ca0d05 /src/map/pc.c
parent4055cb0cb12cab48da433489982a96a8dea0ef82 (diff)
downloadhercules-1110c8cadd71863155a84bbf961803ad7601ef58.tar.gz
hercules-1110c8cadd71863155a84bbf961803ad7601ef58.tar.bz2
hercules-1110c8cadd71863155a84bbf961803ad7601ef58.tar.xz
hercules-1110c8cadd71863155a84bbf961803ad7601ef58.zip
Partially reverted the fail from r13966.
Added support for empty lines between individual attr_fix.txt blocks, fixes crash at startup (bugreport:3426). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13968 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 199602cbc..25bfaa9e9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7861,6 +7861,9 @@ int pc_readdb(void)
p=strchr(p,',');
if(p) *p++=0;
}
+ if( j < 2 )
+ continue;
+
lv=atoi(split[0]);
n=atoi(split[1]);