1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

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).
This commit is contained in:
Tord Romstad 2009-07-17 09:12:59 +02:00
parent 297c12e595
commit 342c8c883c

View file

@ -1492,7 +1492,6 @@ namespace {
else if (tte && tte->type() == VALUE_TYPE_EVAL) else if (tte && tte->type() == VALUE_TYPE_EVAL)
{ {
// Use the cached evaluation score if possible // Use the cached evaluation score if possible
assert(tte->value() == evaluate(pos, ei, threadID));
assert(ei.futilityMargin == Value(0)); assert(ei.futilityMargin == Value(0));
staticValue = tte->value(); staticValue = tte->value();