]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Rename piece_attacks_from() in attacks_from()
[stockfish] / src / search.cpp
index 55b2e92c883fcae9cf6b0362c102a174f5dd3127..41f679a2e791a73a4e39a7a1b3cefb5767775da7 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);
-    if (bit_is_set(pos.piece_attacks_from(p, t1), t2))
+    if (bit_is_set(pos.attacks_from(p, t1), t2))
         return true;
 
     // Case 5: Discovered check, checking piece is the piece moved in m1