diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-14 22:20:15 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-14 22:20:15 -0600 |
commit | 1f073198ce4a175191da2815c00cca11e81735d8 (patch) | |
tree | f953295d95db532750269918dbd13da19500687a /src/map/itemdb.c | |
parent | dc1c0ca6d41a3cb15a98cda7a324a948f40c90f7 (diff) | |
download | tmwa-1f073198ce4a175191da2815c00cca11e81735d8.tar.gz tmwa-1f073198ce4a175191da2815c00cca11e81735d8.tar.bz2 tmwa-1f073198ce4a175191da2815c00cca11e81735d8.tar.xz tmwa-1f073198ce4a175191da2815c00cca11e81735d8.zip |
Fix a bug in item loading
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 41ada0a..d9f77d3 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -293,7 +293,7 @@ static int itemdb_readdb(void) if(line[0]=='/' && line[1]=='/') continue; memset(str,0,sizeof(str)); - for(j=0,np=p=line;j<18 && p;j++){ + for(j=0,np=p=line;j<17 && p;j++){ while (*p == '\t' || *p == ' ') p++; str[j]=p; p=strchr(p,','); @@ -342,6 +342,7 @@ static int itemdb_readdb(void) if((p=strchr(np,'{'))==NULL) continue; id->use_script = parse_script(p,lines); + if((p=strchr(p+1,'{'))==NULL) continue; id->equip_script = parse_script(p,lines); |