OSDN Git Service

ホホー雉ー・「・ッ・サ・ケ、ホ・ミ・ー(inventory[INVEN_TOTAL]、ヒツミ、キ、ニシォニーヌヒイホ・チ・ァ・テ・ッ、キ、ニ、、、ソ)、、タオ。」
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 21 Oct 2002 11:09:21 +0000 (11:09 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 21 Oct 2002 11:09:21 +0000 (11:09 +0000)
src/autopick.c

index 1a3e7f2..407f162 100644 (file)
@@ -1100,7 +1100,7 @@ void delayed_auto_destroy(void)
          * Scan inventry in reverse order to prevent
          * skipping after inven_item_optimize()
          */
-       for (item = INVEN_TOTAL; item >= 0 ; item--)
+       for (item = INVEN_TOTAL - 1; item >= 0 ; item--)
                 delayed_auto_destroy_aux(item);
 
        /* Scan the pile of objects */