X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=b4cae3a07ac0194ef39f7259ad0ed41a3eaeee53;hp=74da3205b3f5265e790b13abe1fabe568ffcbec9;hb=69067e1988ea945977d586a1442a22be0b55671a;hpb=312a248fa9123c48613dcadf2f17c6fd5e0d2a48;ds=inline diff --git a/src/movepick.cpp b/src/movepick.cpp index 74da3205..b4cae3a0 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -221,17 +221,17 @@ Move MovePicker::next_move(bool skipQuiets) { /* fallthrough */ case QUIET: - while ( cur < endMoves - && (!skipQuiets || cur->value >= VALUE_ZERO)) - { - move = *cur++; - - if ( move != ttMove - && move != killers[0] - && move != killers[1] - && move != countermove) - return move; - } + if (!skipQuiets) + while (cur < endMoves) + { + move = *cur++; + + if ( move != ttMove + && move != killers[0] + && move != killers[1] + && move != countermove) + return move; + } ++stage; cur = moves; // Point to beginning of bad captures /* fallthrough */