X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=efa47bd5b4f3df2142f94bf5da4a552567a00b64;hp=3a69f8ab998885e18277b25960bf90e31cd5ed0b;hb=ace8e951d70c2986a0af83effcc0d2b2312d29e3;hpb=805afcbf3d5db39c85b759232cfb99ab0a250311 diff --git a/src/movegen.cpp b/src/movegen.cpp index 3a69f8ab..efa47bd5 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -82,6 +82,8 @@ namespace { // that's not already included in the queen promotion. if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq)) *moveList++ = make(to - Delta, to, KNIGHT); + else + (void)ksq; // Silence a warning under MSVC return moveList; } @@ -236,7 +238,7 @@ namespace { if (Checks) { if ( (Pt == BISHOP || Pt == ROOK || Pt == QUEEN) - && !(PseudoAttacks[Pt][from] & target & pos.check_info().checkSquares[Pt])) + && !(PseudoAttacks[Pt][from] & target & pos.check_squares(Pt))) continue; if (pos.discovered_check_candidates() & from) @@ -246,7 +248,7 @@ namespace { Bitboard b = pos.attacks_from(from) & target; if (Checks) - b &= pos.check_info().checkSquares[Pt]; + b &= pos.check_squares(Pt); while (b) *moveList++ = make_move(from, pop_lsb(&b));