From 1110c8cadd71863155a84bbf961803ad7601ef58 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 27 Jul 2009 09:15:53 +0000 Subject: 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 --- src/map/pc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map') 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]); -- cgit v1.2.3-60-g2f50