1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00: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:
Joost Vandevondele 2016-10-16 15:20:05 +02:00 committed by Marco Costalba
parent 9893e7fd53
commit 3686e719a1

View file

@ -271,8 +271,7 @@ Move MovePicker::next_move() {
case EVASIONS_INIT: case EVASIONS_INIT:
cur = moves; cur = moves;
endMoves = generate<EVASIONS>(pos, cur); endMoves = generate<EVASIONS>(pos, cur);
if (endMoves - cur - (ttMove != MOVE_NONE) > 1) score<EVASIONS>();
score<EVASIONS>();
++stage; ++stage;
case ALL_EVASIONS: case ALL_EVASIONS: