OSDN Git Service

装備品の中で{@wf}等の銘があると、get_tag()が反応してしまい、持ちものリスト
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 16 Jul 2003 14:43:33 +0000 (14:43 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 16 Jul 2003 14:43:33 +0000 (14:43 +0000)
の中で 「f)」のタグが消えてしまうバグ修正。

src/object1.c

index 72174a7..c1861c9 100644 (file)
@@ -4605,8 +4605,8 @@ static int get_tag(int *cp, char tag)
 
        /**** Find a tag in the form of {@x#} (allow alphabet tag) ***/
 
-       /* Check every object */
-       for (i = 0; i < INVEN_TOTAL; ++i)
+       /* Check every inventory object */
+       for (i = 0; i < INVEN_PACK; ++i)
        {
                object_type *o_ptr = &inventory[i];