X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=9d7c1ef601e6514d09b161ac6683a697cc38c08e;hp=3f9e29da0485763dbd40221008a1d977479d2794;hb=686b45e12171dfde16576169814b80ac33b0157d;hpb=dc130042831cdb52994aa8165b1cf8f49eef8640 diff --git a/src/search.cpp b/src/search.cpp index 3f9e29da..9d7c1ef6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1474,7 +1474,7 @@ void RootMove::insert_pv_in_tt(Position& pos) { if (!ttHit || tte->move() != m) // Don't overwrite correct entries tte->save(pos.key(), VALUE_NONE, BOUND_NONE, DEPTH_NONE, m, VALUE_NONE, TT.generation()); - pos.do_move(m, *st++); + pos.do_move(m, *st++, pos.gives_check(m, CheckInfo(pos))); } for (size_t i = pv.size(); i > 0; ) @@ -1494,7 +1494,7 @@ bool RootMove::extract_ponder_from_tt(Position& pos) assert(pv.size() == 1); - pos.do_move(pv[0], st); + pos.do_move(pv[0], st, pos.gives_check(pv[0], CheckInfo(pos))); TTEntry* tte = TT.probe(pos.key(), ttHit); pos.undo_move(pv[0]);