]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Fix a subtle bug due to the StateInfo pointer became stale
[stockfish] / src / position.h
index ae750697aa894b423fa52e15f5fb4a7d8f93f0eb..676f68ef06136a9ec9ee2cecd55396cd84ea300a 100644 (file)
@@ -240,6 +240,7 @@ public:
   bool square_is_weak(Square s, Color c) const;
 
   // Doing and undoing moves
+  void setStartState(const StateInfo& st);
   void do_move(Move m, StateInfo& st);
   void undo_move(Move m);
   void do_null_move(StateInfo& st);