diff options
author | MadCamel <madcamel@gmail.com> | 2009-05-13 15:41:18 -0400 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-13 17:57:15 -0600 |
commit | 94a8a08118ecd9e358d794d430945ada248d0959 (patch) | |
tree | 4ef4f5c15758229585f6003e20b0123c4e7fb883 /src/map/itemdb.c | |
parent | abb8b0a2cd5577cce954f638dca5fa3f371391fb (diff) | |
download | tmwa-94a8a08118ecd9e358d794d430945ada248d0959.tar.gz tmwa-94a8a08118ecd9e358d794d430945ada248d0959.tar.bz2 tmwa-94a8a08118ecd9e358d794d430945ada248d0959.tar.xz tmwa-94a8a08118ecd9e358d794d430945ada248d0959.zip |
Fixed all compiler warnings and several small bugs in the process
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 d9f77d3..0acf181 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -383,7 +383,8 @@ static int itemdb_read_randomitem() struct random_item_data *pd=data[i].pdata; int *pc=data[i].pcount; int *pdefault=data[i].pdefault; - char *fn=data[i].filename; + const char *fn=data[i].filename; + *pdefault = 0; if( (fp=fopen(fn,"r"))==NULL ){ |