From 75adb4b1ba8be16b2416af52df80e771b2e46382 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 15:34:12 +0100 Subject: [PATCH] removed already existing variable --- cpp/src/board.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cpp/src/board.cpp b/cpp/src/board.cpp index a0f050a..ac9699a 100644 --- a/cpp/src/board.cpp +++ b/cpp/src/board.cpp @@ -209,7 +209,6 @@ Board Board::make_move(Move move) const { Coords rook_dest{5, c.y}; ret.squares[rook_dest.to_index()] = old_rook; } else if (move.castle_side & QueenSide) { - Coords c = Coords::from_index(move.source_square); Coords rook_source{0, c.y}; int8_t old_rook = ret.squares[rook_source.to_index()]; ret.squares[rook_source.to_index()] = Piece::None;