OSDN Git Service

古いバージョンのセーブデータを読むコードでc_ptrの設定を忘れて使っていたので修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 13 Jul 2002 17:02:44 +0000 (17:02 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 13 Jul 2002 17:02:44 +0000 (17:02 +0000)
src/load.c

index 629508e..f67cf7d 100644 (file)
@@ -1954,6 +1954,9 @@ static errr rd_dungeon(void)
         {
                 for (y = 0; y < ymax; y++) for (x = 0; x < xmax; x++)
                 {
+                       /* Access the cave */
+                       c_ptr = &cave[y][x];
+
                         /* Very old */
                         if (c_ptr->feat == FEAT_INVIS)
                         {