From: Tord Romstad Date: Fri, 17 Jul 2009 07:12:59 +0000 (+0200) Subject: Removed an incorrect assert() statement in search.cpp, which asserted that X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=342c8c883c2a3c58d7670600e27baf39f5309438 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). --- 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();