X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=94b34389178f0f18119d010bea23c8bdebf3d06e;hp=8b5f3b2b6d8c6171575a31f1cb3e3afcfe8327f3;hb=a1f9bf19d9aa542fd5109a4ce997eac8122568d4;hpb=4894231ff71b4132ce77cac7e01dc708bc93f426 diff --git a/src/search.cpp b/src/search.cpp index 8b5f3b2b..94b34389 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2023,7 +2023,7 @@ split_point_start: // At split points actual search starts from here while ( (tte = TT.probe(pos.get_key())) != NULL && tte->move() != MOVE_NONE && pos.move_is_pl(tte->move()) - && pos.pl_move_is_legal(tte->move(), pos.pinned_pieces(pos.side_to_move())) + && pos.pl_move_is_legal(tte->move(), pos.pinned_pieces()) && ply < PLY_MAX && (!pos.is_draw() || ply < 2)) {