OSDN Git Service

[Fix] #38997 destroy_area() 内変数参照修正. / Fix variable references in destroy_area().
authordeskull <deskull@users.sourceforge.jp>
Sat, 14 Dec 2019 16:09:27 +0000 (01:09 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 14 Dec 2019 16:09:27 +0000 (01:09 +0900)
src/spells-floor.c

index 9156ef4..547c3b0 100644 (file)
@@ -472,7 +472,7 @@ bool destroy_area(floor_type *floor_ptr, POSITION y1, POSITION x1, POSITION r, b
        bool flag = FALSE;
 
        /* Prevent destruction of quest levels and town */
-       if ((p_ptr->current_floor_ptr->inside_quest && is_fixed_quest_idx(p_ptr->current_floor_ptr->inside_quest)) || !floor_ptr->dun_level)
+       if ((floor_ptr->inside_quest && is_fixed_quest_idx(floor_ptr->inside_quest)) || !floor_ptr->dun_level)
        {
                return (FALSE);
        }