]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Rename piece_attacks() in piece_attacks_from()
[stockfish] / src / search.cpp
index acd5d1da4ef7793f7ba02668b5907c2a461ff75e..55b2e92c883fcae9cf6b0362c102a174f5dd3127 100644 (file)
@@ -2182,7 +2182,7 @@ namespace {
 
     // Case 4: The destination square for m2 is attacked by the moving piece in m1
     p = pos.piece_on(t1);
 
     // Case 4: The destination square for m2 is attacked by the moving piece in m1
     p = pos.piece_on(t1);
-    if (bit_is_set(pos.piece_attacks(p, t1), t2))
+    if (bit_is_set(pos.piece_attacks_from(p, t1), t2))
         return true;
 
     // Case 5: Discovered check, checking piece is the piece moved in m1
         return true;
 
     // Case 5: Discovered check, checking piece is the piece moved in m1