X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=07700c6c2dd6cbdd27dd0a48cf985e0f4ddf74aa;hb=54f1c383d36f461a740eeaa93856b408e8d3faa3;hp=80aa55cb34b8ec3c87ecd7ba079d5a54e8f0e8e3;hpb=fe8f5b3497036859f00ed23dbb8abfccc311ab8e;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 80aa55cb..07700c6c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2442,13 +2442,13 @@ split_point_start: // At split points actual search starts from here TTEntry* tte; int ply = 1; - assert(pv[0] != MOVE_NONE && move_is_legal(pos, pv[0])); + assert(pv[0] != MOVE_NONE && pos.move_is_legal(pv[0])); pos.do_move(pv[0], *st++); while ( (tte = TT.retrieve(pos.get_key())) != NULL && tte->move() != MOVE_NONE - && move_is_legal(pos, tte->move()) + && pos.move_is_legal(tte->move()) && ply < PLY_MAX && (!pos.is_draw() || ply < 2)) { @@ -2472,7 +2472,7 @@ split_point_start: // At split points actual search starts from here Value v, m = VALUE_NONE; int ply = 0; - assert(pv[0] != MOVE_NONE && move_is_legal(pos, pv[0])); + assert(pv[0] != MOVE_NONE && pos.move_is_legal(pv[0])); do { k = pos.get_key();