diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-28 09:09:00 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-28 09:09:00 -0700 |
commit | 45ab260d4addc77e66516ebf0f9342cdc9460b32 (patch) | |
tree | 085f4f2909eab3d6e1ec6e8e98ea0434624cf4f1 /src/char | |
parent | e673349395f41aeb0ba18711d23f1cc7636ab52c (diff) | |
download | tmwa-45ab260d4addc77e66516ebf0f9342cdc9460b32.tar.gz tmwa-45ab260d4addc77e66516ebf0f9342cdc9460b32.tar.bz2 tmwa-45ab260d4addc77e66516ebf0f9342cdc9460b32.tar.xz tmwa-45ab260d4addc77e66516ebf0f9342cdc9460b32.zip |
Fix some bugs int he map and char servers
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 6b6b1f1..37794a4 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2679,7 +2679,7 @@ int parse_char(int fd) { } else { for (i = 0; i < 9; i++) { struct mmo_charstatus *cs = NULL; - if ((cs = &char_dat[sd->found_char[i]])->char_id == RFIFOL(fd,2)) { + if (sd->found_char[i] >= 0 && (cs = &char_dat[sd->found_char[i]])->char_id == RFIFOL(fd,2)) { char_delete(cs); // deletion process if (sd->found_char[i] != char_num - 1) { |