mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user