X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=6dd2a10d339e8b7584375e7cc63f7241eaea3852;hp=fc0bdfb47c1c96f1738c8403795640fbf13056f8;hb=adb43cc0cca109c1d95fa8032e717762faa01563;hpb=0a687b2cf06fda0cc8e103c8cf9c3bbd564b02d6 diff --git a/src/tt.cpp b/src/tt.cpp index fc0bdfb4..6dd2a10d 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -192,9 +192,9 @@ void TranspositionTable::extract_pv(const Position& pos, Move pv[], const int PL Position p(pos, pos.thread()); int ply = 0; - // Update position to the end of current PV - while (pv[ply] != MOVE_NONE) - p.do_move(pv[ply++], st); + assert(pv[0] != MOVE_NONE); + + p.do_move(pv[ply++], st); // Try to add moves from TT while possible while ( (tte = retrieve(p.get_key())) != NULL