From: Joost Vandevondele Date: Sun, 16 Oct 2016 13:20:05 +0000 (+0200) Subject: Simplify next_move by always scoring evasions X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=3686e719a14a49f54bff00b3df153e044a0206ab Simplify next_move by always scoring evasions For a default bench, this fixes the last valgrind error (jump on uninitialised value). Passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 187869 W: 33303 L: 33463 D: 121103 No functional change. --- diff --git a/src/movepick.cpp b/src/movepick.cpp index 95e60003..c187c3ad 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -271,8 +271,7 @@ Move MovePicker::next_move() { case EVASIONS_INIT: cur = moves; endMoves = generate(pos, cur); - if (endMoves - cur - (ttMove != MOVE_NONE) > 1) - score(); + score(); ++stage; case ALL_EVASIONS: