From 1ba032ac37bd01f33e1dfcec7ae068651a4aebcb Mon Sep 17 00:00:00 2001 From: Calcitem Date: Fri, 23 Oct 2020 22:54:39 +0800 Subject: [PATCH] =?UTF-8?q?thread:=20idle=5Floop()=20=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=AF=B9=20rootPos=20=E7=9A=84=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/thread.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/thread.cpp b/src/thread.cpp index ac077989..371115cb 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -128,11 +128,7 @@ void Thread::idle_loop() lk.unlock(); // TODO: Stockfish doesn't have this - if ( -#ifdef QT_UI - //rootPos == nullptr || -#endif - rootPos->side_to_move() != us) { + if (rootPos == nullptr || rootPos->side_to_move() != us) { continue; }