summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/itemdb.c1
-rw-r--r--src/map/mob.c1
2 files changed, 2 insertions, 0 deletions
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; }
diff --git a/src/map/mob.c b/src/map/mob.c
index 969eed2..1304a41 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3644,6 +3644,7 @@ static int mob_readdb(void)
continue;
for(i=0,p=line;i<55;i++){
+ while (*p == '\t' || *p == ' ') p++;
if((np=strchr(p,','))!=NULL){
str[i]=p;
*np=0;