thread: idle_loop() 恢复对 rootPos 的空指针判断
This commit is contained in:
parent
f3eb5b3322
commit
1ba032ac37
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue