From f607d15aca6a0eefd350b0643e42180625310967 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 28 Sep 2008 20:08:59 +0000 Subject: Commit Mantis 440: eAthena patch to strip whitespace from item and monster DBs --- src/map/itemdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index a225cff..f68f416 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -329,6 +329,7 @@ static int itemdb_readdb(void) continue; memset(str,0,sizeof(str)); for(j=0,np=p=line;j<17 && p;j++){ + while (*p == '\t' || *p == ' ') p++; str[j]=p; p=strchr(p,','); if(p){ *p++=0; np=p; } -- cgit v1.2.3-70-g09d2