mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Fix an assert when we stop the search
When signal 'stop' is raised we return bestValue that could be still set at -VALUE_INFINITE and this triggers an assert. Fix it by returning a value we know for sure is not +-VALUE_INFINITE. Reported by 平岡拓也 Hiraoka. No functional change.
This commit is contained in:
parent
22715259a0
commit
c1f4000426
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
// ran out of time. In this case, the return value of the search cannot
|
// ran out of time. In this case, the return value of the search cannot
|
||||||
// be trusted, and we don't update the best move and/or PV.
|
// be trusted, and we don't update the best move and/or PV.
|
||||||
if (Signals.stop || thisThread->cutoff_occurred())
|
if (Signals.stop || thisThread->cutoff_occurred())
|
||||||
return bestValue;
|
return value; // To avoid returning VALUE_INFINITE
|
||||||
|
|
||||||
if (RootNode)
|
if (RootNode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue