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/atcommand.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/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index c96b8d7..85ff15c 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -574,7 +574,7 @@ void log_atcommand(struct map_session_data *sd, const char *fmt, ...) sprintf(fullname, "%s.%04d-%02d", gm_logfile_name, year, month); if (gm_logfile) - close(gm_logfile); + fclose(gm_logfile); gm_logfile = fopen(fullname, "a"); free(fullname); @@ -7011,7 +7011,7 @@ int atcommand_jump_iterate( memset(output, '\0', sizeof(output)); - pl_sd = map_id2bl(sd->followtarget); + pl_sd = (struct map_session_data*)map_id2bl(sd->followtarget); if (pl_sd) pl_sd = get_next(pl_sd); |