OSDN Git Service

[Fix] #38997 cave_lite_hack() 内変数参照修正. / Fix variable references in cave_lite_hack().
authordeskull <deskull@users.sourceforge.jp>
Thu, 2 Jan 2020 10:17:11 +0000 (19:17 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 2 Jan 2020 10:17:11 +0000 (19:17 +0900)
src/grid.h

index 5ac5e00..115eb62 100644 (file)
@@ -423,13 +423,13 @@ extern bool cave_player_teleportable_bold(POSITION y, POSITION x, BIT_FLAGS mode
  * have already been placed into the "lite" array, and we are never
  * called when the "lite" array is full.
  */
-#define cave_lite_hack(F, Y,X) \
+#define cave_lite_hack(F,Y,X) \
 {\
        if (!((F)->grid_array[Y][X].info & (CAVE_LITE))) \
        { \
                (F)->grid_array[Y][X].info |= (CAVE_LITE); \
-               (F)->lite_y[p_ptr->current_floor_ptr->lite_n] = (Y); \
-               (F)->lite_x[p_ptr->current_floor_ptr->lite_n++] = (X); \
+               (F)->lite_y[(F)->lite_n] = (Y); \
+               (F)->lite_x[(F)->lite_n++] = (X); \
        } \
 }