mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Fix errouneus reset of ss->threatMove
After we set ss->threatMove we could go under a IID step that resets SearchStack ss and so also ss->threatMove. When later we use that field in futility pruning we have this set to MOVE_NONE ! The fix is to use a local variable and add threatMove to SplitPoint to pass this move to slaves. Spotted by Ralph Stoesser, fix suggested by Richard Vida. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -55,6 +55,7 @@ struct SplitPoint {
|
||||
bool pvNode, mateThreat;
|
||||
Value beta;
|
||||
int ply;
|
||||
Move threatMove;
|
||||
SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
|
||||
|
||||
// Const pointers to shared data
|
||||
|
||||
Reference in New Issue
Block a user