]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use fixed depth bench to make PGO builds more reproducible
[stockfish] / src / search.cpp
index 9eac6d5f9414f4e3a58d1c4404e1f1e3ea2f4dac..6b12e3fec1260435b64341d3a186997f890619bf 100644 (file)
@@ -29,6 +29,7 @@
 #include "misc.h"
 #include "movegen.h"
 #include "movepick.h"
+#include "position.h"
 #include "search.h"
 #include "timeman.h"
 #include "thread.h"
@@ -505,7 +506,7 @@ void Thread::search() {
 
               if (   rootMoves.size() == 1
                   || Time.elapsed() > Time.optimum() * unstablePvFactor * improvingFactor / 628
-                  || (mainThread->easyMovePlayed = doEasyMove))
+                  || (mainThread->easyMovePlayed = doEasyMove, doEasyMove))
               {
                   // If we are allowed to ponder do not stop the search now but
                   // keep pondering until the GUI sends "ponderhit" or "stop".