]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Cleanup and optimize Position::has_mate_threat()
[stockfish] / src / search.cpp
index 97ed340d4efd419ef1dbf3a70d2bc132a16d5ef0..652893282ca35bc51767bcee3d535aa2328ff10f 100644 (file)
@@ -1168,7 +1168,7 @@ namespace {
 
     // Expensive mate threat detection (only for PV nodes)
     if (PvNode)
-        mateThreat = pos.has_mate_threat(opposite_color(pos.side_to_move()));
+        mateThreat = pos.has_mate_threat();
 
     // Initialize a MovePicker object for the current position
     MovePicker mp = MovePicker(pos, ttMove, depth, H, ss, (PvNode ? -VALUE_INFINITE : beta));