]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Revert threat move ordering
[stockfish] / src / position.cpp
index 0c7d62ce10e63839356214778211a93662137e75..47e1af2704e3eb21e08026d09d2a3c0bbe5dd461 100644 (file)
@@ -39,6 +39,8 @@
 //// Variables
 ////
 
+extern SearchStack EmptySearchStack;
+
 int Position::castleRightsMask[64];
 
 Key Position::zobrist[2][8][64];
@@ -1914,8 +1916,7 @@ bool Position::is_mate() {
 
   if (is_check())
   {
-      MovePicker mp = MovePicker(*this, false, MOVE_NONE, MOVE_NONE,
-                                 MOVE_NONE, MOVE_NONE, Depth(0));
+      MovePicker mp = MovePicker(*this, false, MOVE_NONE, EmptySearchStack, Depth(0));
       return mp.get_next_move() == MOVE_NONE;
   }
   return false;