OSDN Git Service

@+アルファベット+数字について、選択肢にないアイテムを選択しようとしてしまう
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 21 Jan 2002 20:56:23 +0000 (20:56 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 21 Jan 2002 20:56:23 +0000 (20:56 +0000)
というのを以前修正したが、@+数字について適用されていなかったのでこちらも修正。

src/object1.c

index a1f0e3c..80822d8 100644 (file)
@@ -4925,6 +4925,9 @@ static int get_tag(int *cp, char tag)
                /* Skip empty inscriptions */
                if (!o_ptr->inscription) continue;
 
+               /* Skip non-choice */
+               if (!item_tester_okay(o_ptr)) continue;
+
                /* Find a '@' */
                s = strchr(quark_str(o_ptr->inscription), '@');