]> git.sesse.net Git - stockfish/blobdiff - src/movegen.cpp
Rename move_is_legal() in move_is_pl()
[stockfish] / src / movegen.cpp
index f38d42261ccfbdf827cdc5d9ad1c813f812a4aff..297b51ffdeacb7e6d633be647d9e3da3a89ffc49 100644 (file)
@@ -451,7 +451,7 @@ namespace {
     // Single and double pawn pushes
     if (Type != MV_CAPTURE)
     {
-        b1 = pawnPushes & emptySquares;
+        b1 = (Type != MV_EVASION ? pawnPushes : pawnPushes & emptySquares);
         b2 = move_pawns<TDELTA_N>(pawnPushes & TRank3BB) & emptySquares;
 
         if (Type == MV_CHECK)