From 342c8c883c2a3c58d7670600e27baf39f5309438 Mon Sep 17 00:00:00 2001 From: Tord Romstad Date: Fri, 17 Jul 2009 09:12:59 +0200 Subject: [PATCH] Removed an incorrect assert() statement in search.cpp, which asserted that a static eval cached in the transposition table would always equal the static eval of the current position. This is in general not true, because the cached value could be from a previous search with different evaluation parameter settings, or from a search from the opposite side (Stockfish's evaluation function is assymmetric by default). --- src/search.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 695d4ae5..4449b1be 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1492,7 +1492,6 @@ namespace { else if (tte && tte->type() == VALUE_TYPE_EVAL) { // Use the cached evaluation score if possible - assert(tte->value() == evaluate(pos, ei, threadID)); assert(ei.futilityMargin == Value(0)); staticValue = tte->value(); -- 2.39.2