OSDN Git Service

[Fix] #38997 get_is_floor() 内変数参照修正. / Fix variable references in get_is_floor().
authordeskull <deskull@users.sourceforge.jp>
Fri, 20 Dec 2019 14:22:42 +0000 (23:22 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 20 Dec 2019 14:22:42 +0000 (23:22 +0900)
src/floor.c

index 09a82d8..ded15c0 100644 (file)
@@ -1023,14 +1023,14 @@ void vault_trap_aux(floor_type *floor_ptr, POSITION y, POSITION x, POSITION yd,
  */
 bool get_is_floor(floor_type *floor_ptr, POSITION x, POSITION y)
 {
-       if (!in_bounds(p_ptr->current_floor_ptr, y, x))
+       if (!in_bounds(floor_ptr, y, x))
        {
                /* Out of bounds */
                return (FALSE);
        }
 
        /* Do the real check */
-       if (is_floor_bold(p_ptr->current_floor_ptr, y, x)) return (TRUE);
+       if (is_floor_bold(floor_ptr, y, x)) return (TRUE);
 
        return (FALSE);
 }