mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Slightly change split() API
This function "returns" two values: bestValue and bestMove Instead of returning one and passing as pointer the other be consistent and pass as pointers both. No functional change.
This commit is contained in:
@@ -1030,8 +1030,8 @@ split_point_start: // At split points actual search starts from here
|
||||
{
|
||||
assert(bestValue < beta);
|
||||
|
||||
bestValue = thisThread->split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
|
||||
depth, threatMove, moveCount, mp, NT);
|
||||
thisThread->split<FakeSplit>(pos, ss, alpha, beta, &bestValue, &bestMove,
|
||||
depth, threatMove, moveCount, &mp, NT);
|
||||
if (bestValue >= beta)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user