thread: idle_loop() 恢复对 rootPos 的空指针判断
This commit is contained in:
parent
f3eb5b3322
commit
1ba032ac37
|
@ -128,11 +128,7 @@ void Thread::idle_loop()
|
||||||
lk.unlock();
|
lk.unlock();
|
||||||
|
|
||||||
// TODO: Stockfish doesn't have this
|
// TODO: Stockfish doesn't have this
|
||||||
if (
|
if (rootPos == nullptr || rootPos->side_to_move() != us) {
|
||||||
#ifdef QT_UI
|
|
||||||
//rootPos == nullptr ||
|
|
||||||
#endif
|
|
||||||
rootPos->side_to_move() != us) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue