diff options
-rw-r--r-- | src/char/char.c | 2 | ||||
-rw-r--r-- | src/map/npc.c | 2 |
2 files changed, 2 insertions, 2 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) { diff --git a/src/map/npc.c b/src/map/npc.c index cc0880a..d484483 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1245,7 +1245,7 @@ static int npc_parse_shop(char *w1,char *w2,char *w3,char *w4) if (value < 0) { int temp = abs(value); if (id == NULL) id = itemdb_search(nameid); - value = id->value_buy; * temp + value = id->value_buy * temp; } nd->u.shop_item[pos].value = value; |