OSDN Git Service

[Fix] #38997 二重に代入していたのを修正 / Fixed double-substitution
authorHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 04:47:00 +0000 (13:47 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 09:28:49 +0000 (18:28 +0900)
src/mspells1.c

index e99116b..b31027e 100644 (file)
@@ -469,7 +469,7 @@ bool clean_shot(player_type *target_ptr, POSITION y1, POSITION x1, POSITION y2,
        /* Check the projection path */
        floor_type *floor_ptr = target_ptr->current_floor_ptr;
        u16b grid_g[512];
-       int grid_n = grid_n = project_path(target_ptr, grid_g, MAX_RANGE, y1, x1, y2, x2, 0);
+       int grid_n = project_path(target_ptr, grid_g, MAX_RANGE, y1, x1, y2, x2, 0);
 
        /* No grid is ever projectable from itself */
        if (!grid_n) return FALSE;