]> git.sesse.net Git - stockfish/blobdiff - src/movepick.h
Avoid using EmptySearchStack global
[stockfish] / src / movepick.h
index 3d87b9c3b5c7998121366efb615f58525247d5f5..56efb321aedf238a7d8b1ae52ca1e1e26f037f58 100644 (file)
@@ -37,8 +37,6 @@
 struct EvalInfo;
 struct SearchStack;
 
 struct EvalInfo;
 struct SearchStack;
 
-extern SearchStack EmptySearchStack;
-
 /// MovePicker is a class which is used to pick one legal move at a time from
 /// the current position. It is initialized with a Position object and a few
 /// moves we have reason to believe are good. The most important method is
 /// MovePicker is a class which is used to pick one legal move at a time from
 /// the current position. It is initialized with a Position object and a few
 /// moves we have reason to believe are good. The most important method is
@@ -66,7 +64,7 @@ public:
     PH_STOP
   };
 
     PH_STOP
   };
 
-  MovePicker(const Position& p, bool pvnode, Move ttm, const SearchStack& ss, Depth d);
+  MovePicker(const Position& p, bool pvnode, Move ttm, Depth d, SearchStack* ss = NULL);
   Move get_next_move();
   Move get_next_move(Lock& lock);
   int number_of_moves() const;
   Move get_next_move();
   Move get_next_move(Lock& lock);
   int number_of_moves() const;