X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=3cc3bfebcdde3a8496ac3ba81b1a73df89f37e76;hp=52aa93ebddc918493fd720a58dace0b1ab1d8d17;hb=07832119507b1bb6e39778d731807fd69eb5d54f;hpb=13fe7ee4df30f5bc15189870ebf5d166e26d9906 diff --git a/src/position.cpp b/src/position.cpp index 52aa93eb..3cc3bfeb 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -591,9 +591,7 @@ bool Position::pl_move_is_legal(Move m, Bitboard pinned) const { // after the move is made if (move_is_ep(m)) { - Color us = side_to_move(); Color them = opposite_color(us); - Square from = move_from(m); Square to = move_to(m); Square capsq = make_square(square_file(to), square_rank(from)); Square ksq = king_square(us);