]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix build with MSVC 2013
[stockfish] / src / search.cpp
index 7fcf4bcbf18f4b1ec335133d63b580c465c8a19b..5ea1f561ed98a9c6bfd452aeaef69c02e64e9fa4 100644 (file)
@@ -367,8 +367,10 @@ namespace {
                 if (Signals.stop)
                     return;
 
-                // Give some update (without cluttering the UI) before to research
-                if (Time::now() - SearchTime > 3000)
+                // When failing high/low give some update (without cluttering
+                // the UI) before to research.
+                if (  (bestValue <= alpha || bestValue >= beta)
+                    && Time::now() - SearchTime > 3000)
                     sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl;
 
                 // In case of failing low/high increase aspiration window and
@@ -1667,6 +1669,7 @@ void Thread::idle_loop() {
           Threads.mutex.lock();
 
           assert(searching);
+          assert(activeSplitPoint);
           SplitPoint* sp = activeSplitPoint;
 
           Threads.mutex.unlock();