summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c2
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) {