From 902c0566a62337c1ec98be3839c70e54329140b2 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 9 Jun 2013 10:58:24 +0200 Subject: [PATCH] Fix incorrect 'ss' pointer in early stop check The exclusion search used to verify one move is much better than other shall be called with 'ss' and not 'ss+1' No functional change. --- src/search.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 1d81fd04..12684455 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -455,11 +455,11 @@ namespace { || Time::now() - SearchTime > (TimeMgr.available_time() * 20) / 100)) { Value rBeta = bestValue - 2 * PawnValueMg; - (ss+1)->excludedMove = RootMoves[0].pv[0]; - (ss+1)->skipNullMove = true; - Value v = search(pos, ss+1, rBeta - 1, rBeta, (depth - 3) * ONE_PLY); - (ss+1)->skipNullMove = false; - (ss+1)->excludedMove = MOVE_NONE; + ss->excludedMove = RootMoves[0].pv[0]; + ss->skipNullMove = true; + Value v = search(pos, ss, rBeta - 1, rBeta, (depth - 3) * ONE_PLY); + ss->skipNullMove = false; + ss->excludedMove = MOVE_NONE; if (v < rBeta) stop = true; -- 2.39.2