OSDN Git Service

scoreserver-relocationからのマージにつき、バージョンを2.2.0.93付けに。 / Version to 2.2.0.93 by merge...
[hengband/hengband.git] / src / autopick.c
index da5a34c..69e89b7 100644 (file)
@@ -1659,7 +1659,7 @@ void autopick_delayed_alter(void)
                autopick_delayed_alter_aux(item);
 
        /* Scan the pile of objects */
-       item = cave[py][px].o_idx;
+       item = cave[p_ptr->y][p_ptr->x].o_idx;
        while (item)
        {
                int next = o_list[item].next_o_idx;