From d10ae90dea62794de96a6bd756e3b73a51bb8909 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 6 Jun 2014 11:10:40 +0200 Subject: [PATCH] Remove 'update gains' hack Use (move != MOVE_NONE) condition to filtering out updating gains at root. bench: 8454456 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 529345e9..1b11092a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -270,7 +270,6 @@ namespace { Value bestValue, alpha, beta, delta; std::memset(ss-2, 0, 5 * sizeof(Stack)); - (ss-1)->currentMove = MOVE_NULL; // Hack to skip update gains depth = 0; BestMoveChanges = 0; @@ -553,6 +552,7 @@ namespace { && ss->staticEval != VALUE_NONE && (ss-1)->staticEval != VALUE_NONE && (move = (ss-1)->currentMove) != MOVE_NULL + && move != MOVE_NONE && type_of(move) == NORMAL) { Square to = to_sq(move); -- 2.39.2