X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftt.cpp;h=c94dae53eb0289d4df142e2765ba7b71ff512099;hb=1aae35b8b7caec936c77fc981a8868d5b237d05b;hp=d0e2d729c8c766e883092277bfc5fd97b2bb58e2;hpb=ce8ac7997c9ddb34c28859a5b9afde0e2b6a4a9d;p=stockfish diff --git a/src/tt.cpp b/src/tt.cpp index d0e2d729..c94dae53 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -87,7 +87,7 @@ TTEntry* TranspositionTable::probe(const Key key, bool& found) const { // Find an entry to be replaced according to the replacement strategy TTEntry* replace = tte; for (int i = 1; i < ClusterSize; ++i) - if ( (( tte[i].genBound8 & 0xFC) == generation8 || tte[i].bound() == BOUND_EXACT) + if ( (( tte[i].genBound8 & 0xFC) == generation8) - ((replace->genBound8 & 0xFC) == generation8) - (tte[i].depth8 < replace->depth8) < 0) replace = &tte[i];