OSDN Git Service

24個以上のアイテムが床にあるとき、num <= 23 で floor_num[num] に
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 6 Jun 2002 10:35:35 +0000 (10:35 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 6 Jun 2002 10:35:35 +0000 (10:35 +0000)
書き込んでしまっていたので、num < 23 に修正。

src/object1.c

index 0ef6109..8315add 100644 (file)
@@ -5958,7 +5958,7 @@ int scan_floor(int *items, int y, int x, int mode)
 
                /* Accept this item */
                /* XXX Hack -- Enforce limit */
-               if (num <= 23)
+               if (num < 23)
                        items[num] = this_o_idx;
 
                num++;
@@ -7415,7 +7415,7 @@ void py_pickup_floor(int pickup)
                }
 
                /* Remember this object index */
-               if (floor_num <= 23)
+               if (floor_num < 23)
                        floor_list[floor_num] = this_o_idx;
 
                /* Count non-gold objects */