mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
Fix a shadowed variable warning under gcc
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
13fe7ee4df
commit
0783211950
1 changed files with 0 additions and 2 deletions
|
@ -591,9 +591,7 @@ bool Position::pl_move_is_legal(Move m, Bitboard pinned) const {
|
||||||
// after the move is made
|
// after the move is made
|
||||||
if (move_is_ep(m))
|
if (move_is_ep(m))
|
||||||
{
|
{
|
||||||
Color us = side_to_move();
|
|
||||||
Color them = opposite_color(us);
|
Color them = opposite_color(us);
|
||||||
Square from = move_from(m);
|
|
||||||
Square to = move_to(m);
|
Square to = move_to(m);
|
||||||
Square capsq = make_square(square_file(to), square_rank(from));
|
Square capsq = make_square(square_file(to), square_rank(from));
|
||||||
Square ksq = king_square(us);
|
Square ksq = king_square(us);
|
||||||
|
|
Loading…
Add table
Reference in a new issue