mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 00:26:33 +08:00
Simplify next_move by always scoring evasions
For a default bench, this fixes the last valgrind error (jump on uninitialised value). Passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 187869 W: 33303 L: 33463 D: 121103 No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
9893e7fd53
commit
3686e719a1
@@ -271,8 +271,7 @@ Move MovePicker::next_move() {
|
||||
case EVASIONS_INIT:
|
||||
cur = moves;
|
||||
endMoves = generate<EVASIONS>(pos, cur);
|
||||
if (endMoves - cur - (ttMove != MOVE_NONE) > 1)
|
||||
score<EVASIONS>();
|
||||
score<EVASIONS>();
|
||||
++stage;
|
||||
|
||||
case ALL_EVASIONS:
|
||||
|
||||
Reference in New Issue
Block a user