From: mogami Date: Fri, 31 May 2002 12:31:28 +0000 (+0000) Subject: 鑑定時の自動破壊で装備品を壊していたバグ修正。 X-Git-Tag: v2.1.2~2109 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5ba16e01ffdf3ecd2f579dfe4455a5b8b968c831;p=hengbandforosx%2Fhengbandosx.git 鑑定時の自動破壊で装備品を壊していたバグ修正。 --- diff --git a/src/autopick.c b/src/autopick.c index b12911c11..ab60553ca 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -806,7 +806,7 @@ void auto_inscribe_item(int item, int idx) { o_ptr->inscription = inscribe_flags(o_ptr, autopick_list[idx].insc); - if (item >= INVEN_RARM) + if (item > INVEN_PACK) { /* Redraw inscription */ p_ptr->window |= (PW_EQUIP); @@ -831,6 +831,9 @@ bool auto_destroy_item(int item, int autopick_idx) char o_name[MAX_NLEN]; object_type *o_ptr; + /* Don't destroy equipped items */ + if (item > INVEN_PACK) return FALSE; + /* Get the item (in the pack) */ if (item >= 0) o_ptr = &inventory[item];