From be34045f928ea73b680c2775841600e3ff2e2b15 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 19:08:21 +0100 Subject: [PATCH] minor fix --- cpp/src/board.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/board.cpp b/cpp/src/board.cpp index 6630eb5..96a3ddf 100644 --- a/cpp/src/board.cpp +++ b/cpp/src/board.cpp @@ -186,7 +186,7 @@ Board Board::make_move(Move move) const { ret.squares[move.target_square - 8] = Piece::None; // -- Handle promotion - if (move.promoting_to != 0) + if (move.promoting_to != Piece::None) ret.squares[move.target_square] = move.promoting_to; // -- Set en passant target if need