thread: idle_loop() 恢复对 rootPos 的空指针判断

This commit is contained in:
Calcitem 2020-10-23 22:54:39 +08:00
parent f3eb5b3322
commit 1ba032ac37
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}