OSDN Git Service

[Fix] #38997 destroy_level() 内変数参照修正. / Fix variable references in destroy_level().
authordeskull <deskull@users.sourceforge.jp>
Wed, 1 Jan 2020 13:10:32 +0000 (22:10 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 1 Jan 2020 13:10:32 +0000 (22:10 +0900)
src/floor-streams.c

index 053346b..66b7629 100644 (file)
@@ -457,9 +457,9 @@ void destroy_level(floor_type *floor_ptr)
        for (n = 0; n < randint1(5); n++)
        {
                /* Pick an epi-center */
-               x1 = rand_range(5, p_ptr->current_floor_ptr->width - 1 - 5);
-               y1 = rand_range(5, p_ptr->current_floor_ptr->height - 1 - 5);
+               x1 = rand_range(5, floor_ptr->width - 1 - 5);
+               y1 = rand_range(5, floor_ptr->height - 1 - 5);
 
-               (void)destroy_area(p_ptr->current_floor_ptr, y1, x1, 15, TRUE);
+               (void)destroy_area(floor_ptr, y1, x1, 15, TRUE);
        }
 }