1
0
Fork 0

Correctly fix "break from split" patch

In case split cut-offs we return with still
some moves to go but we really want to break
out from the loop now.

No functional change.
sf_3_base
Marco Costalba 2012-11-03 17:06:49 +01:00
parent dd5b3086f5
commit a87831230d
1 changed files with 4 additions and 0 deletions

View File

@ -1016,8 +1016,12 @@ split_point_start: // At split points actual search starts from here
&& depth >= Threads.min_split_depth()
&& bestValue < beta
&& Threads.available_slave_exists(thisThread))
{
bestValue = Threads.split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
depth, threatMove, moveCount, mp, NT);
if (bestValue >= beta)
break;
}
}
if (SpNode)