]> git.sesse.net Git - stockfish/blobdiff - src/san.cpp
Easy debug macro enabling
[stockfish] / src / san.cpp
index 01c873959eac591a5dfe83729fbef1a122339dde..9d8a8cf42e5cce568f03d586c32f6335c260d318 100644 (file)
@@ -31,6 +31,7 @@
 #include "movepick.h"
 #include "san.h"
 
+extern SearchStack EmptySearchStack;
 
 ////
 //// Local definitions
@@ -154,8 +155,7 @@ const std::string move_to_san(Position &pos, Move m) {
 Move move_from_san(Position &pos, const std::string &movestr) {
   assert(pos.is_ok());
 
-  MovePicker mp = MovePicker(pos, false, MOVE_NONE, MOVE_NONE, MOVE_NONE,
-                             MOVE_NONE, OnePly);
+  MovePicker mp = MovePicker(pos, false, MOVE_NONE, EmptySearchStack, OnePly);
 
   // Castling moves
   if(movestr == "O-O-O") {
@@ -350,8 +350,7 @@ namespace {
     if(type_of_piece(pc) == KING)
       return AMBIGUITY_NONE;
 
-    MovePicker mp = MovePicker(pos, false, MOVE_NONE, MOVE_NONE, MOVE_NONE,
-                               MOVE_NONE, OnePly);
+    MovePicker mp = MovePicker(pos, false, MOVE_NONE, EmptySearchStack, OnePly);
     Move mv, moveList[8];
     int i, j, n;