X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftt.cpp;h=c94dae53eb0289d4df142e2765ba7b71ff512099;hb=42b77ea7eecaf5f31bf87c7075945273685aa4f5;hp=d0e2d729c8c766e883092277bfc5fd97b2bb58e2;hpb=be509525336b65419e708678abe4e16efb5f6f4d;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];